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.
- Select Model > Internal Events from the navigation bar.
- Create a new event.
- Fill out the required data fields.
- Select Routines under Designation to associate the event with a subroutine.
- Click Add to finish creating the event. The subroutine event is now available on the Routine page.
- Select Configure > Routines from the navigation bar.
- Create a new or edit an existing routine and enter the required data.
- From the Origin menu, select Routine.
- Make sure Call is selected in the Event field.
- From the Subroutines menu, select the Event you just created.
- 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
- Create a new or edit an existing routine.
- Add a new Action.
- From the Action dialog, select Call/Notify/Record.
- Specify the subroutine event that you want to call.
- The routine is now triggered and will run when the action is executed in your main routine.