Interval Job
  • Updated on 06 Sep 2017
  • 1 minute to read
  • Print
  • Dark
    Light

Interval Job

  • Print
  • Dark
    Light

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.
Example:
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.
2017-12-27_091202-1024x646.png

Then, we Name the Flow and click Ok to proceed to the Flow Designer.
2017-12-27_091622-1024x705.png

In the Flow Designer we add Send Email step fromFavorite Steps category.
2017-12-27_091720-1024x873.png

Next, we select Send Email step to edit step input data. In the Email settings we define Constant From and To fields.
2017-12-27_093056-1024x826.png

Then, we define Constant Subject and Body fields.
2017-12-27_093253-1024x818.png

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 .
2017-12-27_093523.png

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.
2017-12-27_093705-1024x742.png

In the resulting Add Interval Job dialog window we define Job Name . Then, we click Pick to select our Flow .
2017-12-27_093705-1024x7421.png

In the Pick Entity window we search and select our Flow . Click Ok to save and continue.
2017-12-27_093798.png

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.
2017-12-27_095751.png

We can manage our Interval Jobs on the respective view of Scheduled Jobs Folder .
2017-12-27_100240-1024x678.png

When our Job runs we receive three Emails .
ThreeEmailsReceived.png

Was this article helpful?