Workflow Events

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

There are six events: OnCreate, OnDelete, OnEnter, OnExit, OnChange, and OnExpire. These events serve two purposes — they represent valid events in your workflow process, and they are used to trigger scripts.

Event Description
OnCreate Creates a new record in a transition from the Item Created shape to an initial state.
OnChange A transition to a new state or back to the same state.
OnDelete Deletes an item in a transition from a valid state to the Item Deleted shape.
OnExpire Performs an event based on the passage of time (For example, if an item remains at a certain state for more than a specified length of time, an event can be triggered to mark that item as overdue). Triggered by the SQL Server agent that runs stored procedures.
OnExit Triggered if transitioning from a given state regardless of the next state of the transition.
OnEnter Triggered when transitioning into a given state regardless of the previous state in the transition.

See Also

Workflow Scripting Reference | Order of Workflow Events | Session Object Model Reference | Logger Object Model Reference