There are some cases where there’s a need to invoke an orchestration or a service periodically. There are a few ways to accomplish that:
• Use a cron expression
• Use the Windows Task Scheduler
• Create an orchestration with a timer
With the first two options, you need to build a script or an executable to be called by the cron job or the Task Scheduler.
In this post, I’ll focus on the third option which is to creating an orchestration.
LiveCycle Process Management provides a service that suspends the execution of a long lived process for a period of time. This service is called the Wait service and is located within the Process Management category.
The service is pretty straight forward to use. You just specify the amount of time you want to wait before going to the next step. The next step can be another service call or a sub process. If you want to periodically call that next step, you can always loop back to the wait.
Now, in order to start the loop, we need to invoke the process once. If the server is restarted, the process will still continue the loop when LiveCycle is up and running again since it’s long lived.