Create a Subroutine

Subroutines provide a way to trigger a standard routine within the context of a specific application routine, essentially allowing you to reuse the same action in a different context and removing the need to recreate the same steps when you carry out the same process in a number of routines.

Create a Subroutine

To create a subroutine, you must first create a subroutine event and then modify an existing routine or create a new routine to associate with the subroutine.

  1. Select Model > Internal Events from the navigation bar.
  2. Create a new event.
  3. Fill out the required data fields.
  4. Select Routines under Designation to associate the event with a subroutine.

  1. Click Add to finish creating the event. The subroutine event is now available on the Routine page.
  2. Select Configure > Routines from the navigation bar.
  3. Create a new or edit an existing routine and enter the required data.
  4. From the Origin menu, select Routine.
  5. Make sure Call is selected in the Event field.
  6. From the Subroutines menu, select the Event you just created.
  7. Add actions and logic data for your subroutine and click Update or Add.

Call a Subroutine from a Routine

See Calll / Notify / Record for more detail on triggering sub routines

  1. Create a new or edit an existing routine.
  2. Add a new Action.
  3. From the Action dialog, select Call/Notify/Record.
  4. Specify the subroutine event that you want to call.
  5. The routine is now triggered and will run when the action is executed in your main routine.