Defining a Custom Error Message on a Stop Step

This topic describes how to define a custom error message on a stop step.

To define a custom error message on a stop step

  1. Add a stop step to your Workflow Process as shown in Adding a Stop Step.

  2. Select the stop step on the canvas and in the Properties pane, set the Error Code property to the following value:

    WF_ERR_CUSTOM_1

    The Error Message property is set to %1, by default.

  3. In the Multi Value Property Window (MVPW) pane:
    • Add a new input argument for the stop step. For more information, see Arguments You Can Define for a Process Property.

    • Set the Name field to the substitution variable that appears in the Error Message property in the Properties pane. In this situation, this value is %1.

    • Type in the custom text message in the Value field.

      At runtime, Siebel CRM replaces the %1 substitution variable with the value that you enter in the Value field.

Defining Multiple Custom Error Messages for a Stop Step

You can use multiple customizable codes in the Error Code property of a stop step. These codes use the following format:

WF_ERR_CUSTOM_x 

Each WF_ERR_CUSTOM_x code is unique. You can use each of these error codes only one time, and for a specific purpose. If you must display multiple custom error messages, then use WF_ERR_CUSTOM_2, WF_ERR_CUSTOM_3, and so on, instead of using %1, %2 for the same WF_ERR_CUSTOM_x.