Throwing 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
Procedure
To add an error end event to a service, complete the following steps:
- Open the appropriate process application in the Designer view.
- 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.
- From the palette, drag an error end event
onto the canvas. - 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.
- In the diagram, connect the error end event to the logic you want to run when the error occurs.
- Click Save or
Finish
Editing.