To help you decide when to use one of the several types of actions available in a workflow process, the actions are divided into four categories:
In the following figure, you can see how the actions are related to a state:
The Action Types in Relation to the State, Activated
You can use the following table to determine which of the action types to use:
To execute script | Use | Friendly action name | Scope |
When a row is inserted into the database(1) | OnCreate | Create | State |
When a row is deleted from the database(1) | OnDelete | Delete | State |
When a row is updated in the database(1) | OnChange | Edit | State |
When the state is entered | OnEnter | Enter | State |
When the state is exited | OnExit | Exit | State |
Between states | OnTransition | Transition | Transition |
That specifies a condition for an automatic change in state | OnTimeout | Timeout | State and Transition |
1 Inserts, deletes, and updates are not permitted unless you add the action. Script is not required, but the declaration of the action is.