Startup Job
  • 31 Dec 2020
  • 1 Minute to read
  • Dark
    Light

Startup Job

  • Dark
    Light

Article Summary

Overview 

This tutorial demonstrates how to create and use a Startup Job in the Decisions Studio. A Startup Job is a type of a Job introduced in Decisions 4.1. that allows users the ability to pick a Flow that is going to run each time Decisions is starting up.



Example

In this example, create a simple Flow that sends an Email. Then, create a Startup Job to run the Flow when Decisions is starting up.

  1. Navigate to a Designer Project and click the CREATE FLOWbutton on the top Action bar. 
    1. Select Flow, provide a Name, and click CREATE.
  2. From the Flow Designer, add a Send Email step from the FAVORITE STEPS category of the Toolbox tab, to the Done path of the Start step.
  3. Select the Send Email step to navigate to its Properties tab. 
    1. Constant map in values for the From and To addresses, as well as the Subject and Body.
  4. Connect the Sent path to the End step, then Save the Flow, and close with X.
  5. Navigate to System > Jobs and Events > Scheduled Jobs and click the Add Startup Job button on the top Action bar. 
  6. Provide a Job Name, then click PICK FLOW
    1. Select the Email Flow that was created in the previous steps, then click PICK
    2. Click SAVE to save the Job and exit.



Debug 

  1. From the Scheduled Jobs Folder, navigate to the Startup Jobs tab to view the established Startup Job.
  2. To test the Startup Job, restart Server Host Manager.
  3. Reconnect to the Server. 
  4. On startup, check the inbox for the To address in the Email Flow. 
    Successful execution of the Startup Job will result in the sending of an email to the To address defined in the example.



Was this article helpful?