Startup Job
  • Updated on 01 Sep 2017
  • 1 minute to read
  • Print
  • Dark
    Light

Startup Job

  • Print
  • Dark
    Light

This tutorial demonstrates how to create and use Startup Job in Decisions . Startup Job is a new type of a Job introduced in Decisions 4.1 . This Job allows to pick a Flow that is going to run each time Decisions is starting up.
Example:
In this example we are going to create a simple Flow that sends an Email . Then, we are going to create a Startup Job to run the Flow when Decisions is starting up.
We begin in the Designer Folder with clicking Create Flow on Folder Actions Panel.
2018-03-30_1029175.png

In the resulting window we Name the Flow and click Ok to proceed to the Flow Designer.
2017-12-21_151127-1.png

In the Flow Designer we add Send Email step from Favorite Steps category.
2017-12-21_151417-1.png

For the Email step we define Constant From and To inputs.
2017-12-21_151746-1.png

Also, we configure Constant Subject and Body inputs.
2017-12-21_151905-1.png

Next, we connect the outcome from Send Email step to the End step in our Flow .
This completes our Flow . We save the Flow and close Flow Designer.
2017-12-21_152024-1.png

In Decisions Portal we navigate to System > Jobs and Events > Scheduled Jobs Folder , and click Add Startup Job on Folder Actions Panel.
2017-12-21_152334-1.png

In the Add Startup Job window we define Job Name in Setup section. Then, we use Flow Picker to select a Flow to run.

In the resulting window we select our Flow and click Ok to continue.
2017-12-21_152543-1.png

This completes basic setup for the Startup Job . Click Ok to save the Job .
saveStartupJob.png

Job is created and can be managed on the Startup Jobs view in Scheduled Jobs Folder .
jobCreated.png

To test our Startup Job we restart Service Host Manager located in Local Services in Windows OS.
restartShm1.png

After Decisions comes back up…
reconnecting.png

We receive an Email from the Flow that was executed by our Startup Job.
emailReceived1.png

Was this article helpful?