Client-side human services: Catching errors by using error intermediate events

When you attach it to a service node, the intermediate event becomes an error boundary event that catches errors and receives error data from the service that it is attached to. The error boundary event is triggered while the service is running and interrupts its execution.

About this task

Tip: To have different error handling logic for different errors, define multiple error boundary events on one service node. For each error boundary event, use different error codes or error data to differentiate between the different kinds of errors. Then, connect each one to the error handling logic that applies.

Procedure

To add an error boundary event to a service in a client-side human service, complete the following steps:

  1. Open the Process Designer desktop editor.
  2. Open the client-side human service that you want to work with.
  3. In the Diagram view, drag an intermediate event Intermediate event tool onto the service node. The intermediate event changes into an error boundary event Error boundary event that is attached to the boundary of the service.
    An example of error boundary event implementation in a client-side human service. The diagram shows a service flow that consists of a start event, a coach, a service, and an end event. The service node has an error boundary event that is attached to it.
  4. Select the error boundary event and, in its Implementation tab, under Event Properties, select Catch all errors or Catch specific errors to specify what type of errors you want the error event to catch.
  5. If you selected Catch specific errors, click the pickers next to Error code and Error mapping to filter on the error code for the specific errors that can be caught and map the error data to a local variable.
  6. Connect the error boundary event to the logic you want to run when the error occurs. For example, you can connect it to a coach that displays an error message to a user.
  7. Click Save all to save the configuration of the client-side human service.