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.
Procedure
-
On the OnStart Script tab, enter the code.
Tip
Click Insert Variable to add a workflow variable as needed.