Documentation Center

Event phases

In your call to Subscribe or SubscribeAsync, an event handler can be triggered at one or more phases of an event: Initiated, Processed, TransactionCommitted, TransactionAborted or TransactionInDoubt.

Initiated
The event handler is triggered just before the actual event. For example, just before saving a Component, you can trigger code that analyzes its contents, derives a set of Keywords, and adds these Keywords to the metadata of the Component.
Processed
The event handler is triggered after the event, but before the result of the event is committed to the Content Manager. For example, you can trigger code that performs some kind of check that would make the operation in progress fail.
TransactionCommitted
The event handler is triggered after the event has been committed. This might include, for example, triggering an autopublish of a newly created Component or Page.
TransactionAborted
The event handler is triggered after the event has been aborted, and the system rolls back an item. For example, you might want to trigger code that rolls back other items on which the rolled-back item depends.
TransactionInDoubt
The event handler is triggered when the event is in an uncertain state. Here, you might trigger the logging of a custom error.