You can execute a script written in Java or JavaScript at the end of the workflow execution. For example, you can specify a script to check that a certain Workflow activity completed successfully.
Procedure
-
From the Workflow window, go to the Workflow Properties pane.
-
Click the OnComplete Script tab.
-
Enter the code to be used.
Tip: Click Insert Variable to add a workflow variable as needed.