Using Error Intermediate Event

Error Intermediate Event is used to redirect process flow execution to an alternate path in case of failure of any activity during process flow execution. To understand the use of Error Intermediate Event, consider the following process flow:



In this process flow, data from a text file is converted to an excel file using schema and mapping activities. You may want to be notified if the mapping activity fails during process flow execution.

To handle this situation, you can attach Error Intermediate Event with the mapping activity so that in case mapping activity fails, a notification activity is executed and sends an email to the specified email address. Use of Error Intermediate Event is displayed in the following figure.



To use Error Intermediate Event:

  1. In the Process Designer, in the Graph Canvas area, right-click the activity with which you want to attach the event and then click Add Error Intermediate Event.


    This attaches the Intermediate Event to the selected activity.

     

  2. Drag another activity to be executed, in case of failure of the mapping activity, to the Graph Canvas area.

  3. Connect the Error Intermediate Event to the notification activity, for example, Mail Notification activity and then Mail Notification activity to the End Event.

 

While connecting Error Intermediate Event with Mail Notification activity, please ensure that you are connecting Error Event with Mail Notification not the Mapping activity with Mail Notification.