# Execute a process repeatedly

**URL:** <https://community.ofelia.com/t/execute-a-process-repeatedly/6313>\
**Category:** Q&A\
**Created:** [17 August 2015 10:34 UTC](https://community.ofelia.com/t/execute-a-process-repeatedly/6313 "2015-08-17T10:34:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![o.eddaoudi](https://avatars.discourse-cdn.com/v4/letter/o/58f4c7/32.png) [@o.eddaoudi](https://community.ofelia.com/u/o.eddaoudi)\
**Post date:** [17 August 2015 10:34 UTC](https://community.ofelia.com/t/execute-a-process-repeatedly/6313/1 "2015-08-17T10:34:35Z")

</div>

Hi,  
how can i configure my Process to be started (executed) automatically every day?  
Any Ideas?  
Thanks

Bonita 7

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [17 August 2015 13:00 UTC](https://community.ofelia.com/t/execute-a-process-repeatedly/6313/2 "2015-08-17T13:00:52Z")

</div>

To paraphrase the immortal words of Deep Thought

_Do I_ Have an answer for you?

Yes.

But you’re not going to like it…

wait, wait, wait

Okay. The answer to the ultimate question of _how do I start my process everyday_ is…

Have a process!

Seriously though, yes you need a process. But what sort of process? You have to be very careful with a question like this because of the ramifications.

For example:

When do you want it to Start?  
Will the time Change?  
What about Weekends?  
What about Public Holidays?

Are there any Dependencies?  
Are there any Prerequisites?

What happens if it Works?  
What happens if it Fails?

What happens if it Fails and there are Dependencies?  
What is the (data) regression required if it does Fail??

Ordinarily something like this should go into a Scheduler and the whole process would be mapped out. A process is only part of a chain of other processes…so be aware.

I’m going to think though this is a simple task…

Everyday at 01:00

At the end of your process, add a script connector that calculates the next start time.  
Start a new process using **startProcess(processID, MAP(data));** sending the new start date time to the process in the data.  
And at the start of the process have a timer that accepts the next start time (from the data) and waits until the timer crosses over.

There are probably better ways, but this one works for me…dirty and easy. But like I say - bear the above in mind,

regards  
Seán
