You can execute a script written in Java or JavaScript at the beginning of the workflow execution. For example, you can specify a script to help you determine if the elements involved in the Workflow are ready before execution.
Procedure
-
From the Workflow window, go to the Workflow Properties pane.
-
Click the OnStart Script tab.
-
Enter the code to be used.
Tip: Click Insert Variable to add a workflow variable as needed.