Hi Dídac
I am writing a Timer function that will be available in the fn_utilities package in the Resilient Community Apps.
It will provide a little more functionality than the sleep function that you posted here. It will periodically wake up and
check to see if the calling workflow is still running and will end execution if the workflow has terminated.
Included will be an example workflow that calls the Timer function twice using a parallel gateway (working on
this at the moment). A rule can be defined that uses activity fields that allows the user to enter the time to sleep
(In seconds, hours, minutes, or days). Each call to the Timer function will run in it's own thread.
How you define your workflow determines whether the first one is waits till finished if you are calling it multiple times.
You can call the Timer function multiple times serially or in parallel (using the parallel gateway).
Hopefully this function will be available within the next few weeks.
AnnMarie Norcross
------------------------------
AnnMarie Norcross
------------------------------