Siebel Business Process Framework: Workflow Guide > Options for Configuring a Workflow Process > Handling Errors >

Using an Error Workflow Process to Handle Errors


An error workflow process is a type of workflow process that runs if another workflow process reaches an error state. If this calling workflow process reaches an error state, then Siebel CRM stops the calling workflow process, passes system defined process properties to the error workflow process, and then runs the error workflow process.

A sub process can call an error workflow process. An error workflow process cannot contain a sub process.

Using an error workflow process to handle errors

  1. In the Workflow Processes list, locate the workflow process that must call the error workflow process.

    For more information, see Locating a Workflow Process in the Workflow Processes List.

  2. In the Workflow Processes list, in the Error Process Name property, choose a workflow process.

    Siebel CRM uses the workflow process that you define in the Error Process Name property as the error workflow process.

  3. If the error workflow process must change the state of the calling workflow process, then you can add an error exception connector to the calling workflow process.

    An error workflow process does not return values back to the calling workflow process.

Benefits of Using an Error-Workflow Process

A universal exception handler is an error workflow process that Siebel CRM can use to handle an error that occurs across multiple steps in a workflow process or across multiple workflow processes. You can use it to reduce clutter in a workflow process diagram. You can reuse a single error workflow process that handles the same error for multiple calling workflow processes.

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. This workflow process remains in the In Error state and Siebel CRM returns an error code to the object that called this workflow process.
  • Contains a value. Siebel CRM runs the error workflow process. Table 39 describes the possible outcomes.
Table 39. How Siebel CRM Handles Errors in an 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 subprocess encounters an error, and if an error workflow process is defined in the Error Process Name property for this subprocess, then the error workflow process finishes with one of the outcomes described in Table 40.

Table 40. How Siebel CRM Handles Errors for a Sub Process
Situation
Error State
Error Code
Result

The error workflow process handles the error successfully.

Completed

Not applicable

If the error workflow process encounters an end step, then error handling is successful and the subprocess 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 subprocess. 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.

Siebel Business Process Framework: Workflow Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.