Execute a process repeatedly

1
0
-1

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

Bonita 7

1 answer

1
0
-1

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

Notifications