How Siebel CRM Handles Errors
This topic describes how Siebel CRM handles errors for a Workflow Process and for a sub process.
How Siebel CRM Handles Errors for a Workflow Process
If an error occurs in a Workflow Process and if the Error Process Name property for this Workflow Process:
-
Does not contain a value. Then this Workflow Process remains in an In Error state and Siebel CRM returns an error code to the object that called this Workflow Process.
-
Contains a value. Then Siebel CRM runs the error Workflow Process. The following table describes the possible outcomes when Siebel runs the error Workflow Process.
Situation | Error State | Error Code | Result |
---|---|---|---|
The error Workflow Process handles the error successfully. |
Completed |
Siebel CRM does not return an error code to the object that called the error Workflow Process. |
If the error Workflow Process encounters an end step, then error handling is successful and the error Workflow Process terminates immediately with a Completed state. |
The error Workflow Process tries to handle the error but fails with a different error. |
Error |
Siebel CRM returns an error code to the object that called the error Workflow Process. You define this error code on the stop step of the error Workflow Process. |
If the error Workflow Process encounters a stop step, then the error Workflow Process terminates immediately with In Error state. |
The error Workflow Process cannot handle the error. |
Error |
Siebel CRM returns the original error code to the object that called the error Workflow Process. |
If no start decision condition is met, then the error Workflow Process terminates immediately with In Error state. |
How Siebel CRM Handles Errors for a sub process
If a sub process encounters an error, and if an error Workflow Process is defined in the Error Process Name property for this sub process, then the error Workflow Process finishes with one of the outcomes described in the following table.
Situation | Error State | Error Code | Result |
---|---|---|---|
The error Workflow Process handles the error successfully. |
Completed |
N/A |
If the error Workflow Process encounters an end step, then error handling is successful and the sub process terminates with a Completed state. Siebel CRM returns control to the calling Workflow Process. This calling Workflow Process continues to run from the next step. |
The error Workflow Process attempts to handle the error but fails with a different error. |
In Error |
Siebel CRM returns an error code to the sub process. You define this error code on the stop step of the error Workflow Process. |
If the error Workflow Process encounters a stop step, then error handling failed. Siebel CRM terminates the error Workflow Process and the calling Workflow Process with the In Error state. |