Siebel Business Process Framework: Task UI Guide > Creating Steps and Connectors >

Creating an Error Step


An error step is a type of task UI step that creates an error message and returns control to the current view. It allows you to configure Siebel CRM to display an error message in the Siebel client. This functionality is typically required if an error message that a business service returns is not sufficiently clear to the user. The error step in a task UI supports an exception in a way that is similar to how the Stop step works in a workflow process. For example, assume a business service step in a task UI calls an external system, the external system is down, and an error occurs. An exception branch and an error step handle this error.

If the error step runs, then Siebel CRM does the following work:

  • Replaces the existing error message with the error message that you define for the error step. This configuration allows you to display an informative and contextual message in the Siebel client. Siebel CRM displays this error message in a dialog box on top of the current view.
  • Resets the task UI to the most recent view step that it displayed before it encountered the error step. If Siebel CRM runs an error step before it displays the first view step in a task UI, then it cancels the task.

You can use an error step in an exception branch or as part of the normal logic of a task UI to handle an expected error.

To create an error step

  1. Add an error step to a task UI.

    For more information, see Adding a Step to a Task UI.

  2. In the Error Code property of the error step, choose a predefined error code from the picklist, or define a custom error message.

    For more information, see Creating a Custom Error Message.

How Siebel CRM Handles an Error While a Task UI Runs

If an exception occurs in a task step while the task UI runs, and if no exception branch is defined, then Siebel CRM displays a generic error message in a dialog box that it displays on top of the current task view. The user can acknowledge the error message, and then correct the data in the task view, or can navigate to a previous task view to correct the data. This configuration is known as default exception handling.

How Siebel CRM Handles an Error When the User Pauses a Task UI

No exception handling occurs if a user pauses a task UI. If a paused task fails, then Siebel CRM displays a typical error message, not a pause error. The user can cancel or continue the task.

How Siebel CRM Handles an Error When the User Cancels a Task UI

If the user clicks Cancel, then Siebel CRM displays a dialog box that prompts the user for confirmation. For example, if the user is about to perform a delete or undo operation in a task UI, and then clicks OK to continue.

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