About Event Handling
A task event is a type of event that allows you to define the processing that Siebel CRM does when an operation in a task calls an event. The following operations support event handling:
-
Pause
-
Resume
-
Cancel
-
Delete
-
Complete
If Siebel CRM starts an operation in a task, then it calls a task event to handle the operation. The event handler for each operation performs the required action according to the semantics of each operation. A pre-event handler is a type of handler that runs before Siebel CRM performs the operation for the handler, such as Resume, Pause, or Delete. Most handlers are pre-event handlers.
For example, the Cancel operation includes two event handlers: a pre-event handler and a post-event handler:
-
The PreCancel event handler runs when the user cancels a task and before the temporary storage data rolls back.
-
The PostCancel event handler starts after the PreCancel event handler runs and after Siebel CRM rolls back the temporary storage after the task finishes. For example, if the user clicks Finish or Submit, then the PostComplete event handler starts.
Siebel CRM does the following work to run an event handler that starts before the user starts the operation:
-
If the event handler succeeds, then the Task UI framework finishes the operation that the user started.
-
If the event handler fails, then Siebel CRM stops the operation that the user started and returns the error to the object that called the event.
For more information, see Creating a Task Event and Siebel Object Interfaces Reference.