Adding an OnStart Script to a Workflow


You can execute a script written in Java or JavaScript when a workflow starts to run. For example, you can specify a script to determine whether the elements used in the workflow are ready before the workflow runs.


  1. Open the workflow properties.

  2. On the OnStart Script tab, enter the code.

    Tip: Click Insert Variable to add a workflow variable as needed.

Adding an OnStart Script to an Activity