Interval JobLast Updated: 04/10/2018 Introduced in Version: 4.1
This tutorial demonstrates how to create and use Interval Job in Decisions. Interval Job is a type of Scheduled Job introduced in Decisions 4.1. It allows to pick a Flow and run it defined number of times with provided interval.
In this example we are going to create a simple Flow that will be sending an Email.
Then, we are going to create an Interval Job to run this Flow three times every five minutes.
We begin in the Designer Folder with clicking Create Flow on Folder Actions Panel.
Then, we Name the Flow and click Ok to proceed to the Flow Designer.
In the Flow Designer we add Send Email step from Favorite Steps category.
Next, we select Send Email step to edit step input data. In the Email settings we define Constant From and To fields.
Then, we define Constant Subject and Body fields.
Finally, we connect the outcome from Send Email step to the End Step. This completes our Flow. We can save the Flow and close Flow Designer.
Back in Decisions Studio Portal we navigate to System > Jobs and Events > Scheduled Jobs Folder.
Then, we click Add Interval Job on Folder Actions Panel.
In the resulting Add Interval Job dialog window we define Job Name. Then, we click Pick to select our Flow.
In the Pick Entity window we search and select our Flow. Click Ok to save and continue.
Back in the Add Interval Job window we set Count property. This is the number of times our Flow is going to run when Job is triggered (in this case we set it to 3 so we are going to receive 3 Emails each time this Job runs). Then, we set Interval setting to five minutes. This will trigger this Job to run every 5 minutes.
Optionally, we can set Thread Queue Name and Only Run On Job Server settings.
When finished, click Ok to save Interval Job.
We can manage our Interval Jobs on the respective view of Scheduled Jobs Folder.
When our Job runs we receive three Emails.