IBM BPM version 8570 cumulative fix 2016.09Throwing errors in service flows

For errors that are thrown from a service flow or heritage human service, you can use error end events to end the processing of the service at a specified step.

About this task

To throw a specific error, you can set the properties of the error in the Implementation tab of the error end event, by specifying the error code and mapping the error data to a specified variable.

Procedure

To add an error end event to a service, complete the following steps:

  1. Open the appropriate process application in the Designer view.
  2. From the IBM® Process Designer library, create or open the service flow or heritage human service that you want to work with, and click its Diagram tab. To create the service, see Creating a service flow or Building a heritage human service.
  3. From the palette, drag an error end event Error end event onto the canvas.
  4. In its Implementation properties, under Error code, specify the error code for the error to be thrown. The error code expression must evaluate to a string value at run time. If the error code is defined as a string literal (for example, "ErrorCode1"), the code is included in the list of defined errors that can be caught when you create an error intermediate event in a parent process or service. Click the Error mapping picker to map the error data to an error mapping variable that was previously defined on the Variables tab.
  5. In the diagram, connect the error end event to the logic you want to run when the error occurs.
  6. Click Save or IBM BPM version 8570 cumulative fix 2017.03Finish Editing.