# Graph Execution by a Trigger

**URL:** <https://forum.cloverdx.com/t/graph-execution-by-a-trigger/651>\
**Category:** CloverDX Platform\
**Created:** [January 7, 2010, 12:00am UTC](https://forum.cloverdx.com/t/graph-execution-by-a-trigger/651 "2010-01-07T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maniatindia](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@maniatindia](https://forum.cloverdx.com/u/maniatindia)\
**Post date:** [January 7, 2010, 12:00am UTC](https://forum.cloverdx.com/t/graph-execution-by-a-trigger/651/1 "2010-01-07T00:00:00Z")

</div>

Hi,

Is the way I can run a clover graph as a result of External Agent. The requirement of my project is,

Data comes as a mail each day, now the execution has to begin as a result of the mail.

Regards,  
Rama.

---

<div class="post-metadata">

**Author:** ![mvarecha](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mvarecha](https://forum.cloverdx.com/u/mvarecha)\
**Post date:** [January 8, 2010, 10:30am UTC](https://forum.cloverdx.com/t/graph-execution-by-a-trigger/651/2 "2010-01-08T10:30:50Z")

</div>

Hello Rama,

yes, there is the way.  
There are basically two possibilities.

1] Solution on the mail server  
You can execute script for incoming message. The script can execute Clover.  
Here is some thread about similar topic on Linux Questions:  
[http://www.linuxquestions.org/questions … ved-55835/](http://www.linuxquestions.org/questions/linux-general-1/run-script-when-email-is-received-55835/)

2] solution on the client  
Make a script which periodically looks up for new messages on the server and when new message comes, it executes Clover graph.  
Or you can use Clover graph instead of the script  
\* Data Generator component generates some dummy data  
\* Speed Limiter component defines periodicity  
\* System Execute component executes script which looks up for new messages on the server  
… or you can use Java execute and implement java code which reads the messages from the server  
\* Run Graph executes the graph as a response for each message

Regards,  
Martin

---

<div class="post-metadata">

**Author:** ![maniatindia](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@maniatindia](https://forum.cloverdx.com/u/maniatindia)\
**Post date:** [January 12, 2010, 11:12am UTC](https://forum.cloverdx.com/t/graph-execution-by-a-trigger/651/3 "2010-01-12T11:12:58Z")

</div>

Thanks Martin.
