Platform SDK: Exchange 2000 Server

Event Types

[This is preliminary documentation and subject to change.]

There are two sets of Event Types in workflow. An event sink uses the CdoWfEventType enumeration when it calls ProcessInstance.Advance (workflow engine). The ActionTable uses event types to characterize document transitions.

CdoWfEventTypes in Calls to Advance

You use the following CdoWfEventTypes if you write your own event sink to use the workflow engine.

Action Table EventType

You will also use event types when you design the ActionTable. The ProcessDefinition.ActionTable property includes a field called EventType, but this field takes different values. The following table lists the values you use in the ActionTable EventType field. Your ActionTable may include states that have more than one path of entry or exit. The ActionTable EventTypes include two types for you to use, when you want an action to fire for a particular state, no matter how the ProcessInstance entered or exited that state. OnEnter and OnExit allow you to specify an action for a given state whenever a ProcessInstance enters or leaves that state.

Name Value Description
OnCreate 1 Document was created.
OnChange 2 Document was modified.
OnDelete 3 Document was deleted.
OnEnter 4 New state is entered. This is where the Workflow Design Tool usually sets the expiry interval.
OnExit 5 Old state is exited.
OnExpiry 6 Document has been in the current state too long.
OnReceive 7 Received an e-mail response correlating to the document.