Adding Enter and Exit Actions
See Also
As an item enters or exits a state, you can specify conditions that validate whether the item can leave or enter that state. Although the Enter and Exit actions are typically used for evaluating conditions, you can add script to perform additional actions as well.
To specify script that executes immediately before entering and after exiting a state
- In the Workflow Process pane, select the Design tab.
- In the workflow diagram, right-click the state, and select Add Action.
- In the Add Action dialog box, select an action type.
If you want to |
Select |
Execute script when moving into the state | Enter |
Execute script when leaving the state | Exit |
- In the Action name field, enter a name, and click OK.
- If you want to add script to the action, double-click the action in the Actions list.
- In the Shared Script tab, modify the validation function, or add script to the action procedure directly below it. By default, the validation script procedure returns True.
- Click Verify Script to test the syntax of your script.
- Click Save.