Model End Event

An End Event indicates, where a particular Process ends. A Process can start in many ways, depending on the Trigger Type, but every Process in Enterprise Architect must terminate with an End Event.

The OMG BPMN 1.1 Specification defines eight types of End Event (or Result), which determine the consequence of reaching the End Event. These are:

  • None
  • Message
  • Error
  • Cancel
  • Compensation
  • Signal
  • Terminate
  • Multiple

In Enterprise Architect, five of these Result types can be mapped to BPEL, as per the OMG BPMN 1.1 Specification:

  • Message
  • Error
  • Compensation
  • Terminate
  • Multiple

 

To create a new End Event in your model, follow the steps below:

  1. Open a BPEL diagram created under a BPEL Process.
  2. Drag the End Event element from the BPMN 1.1 Core page of the Toolbox onto the diagram. A prompt displays to select either an edge-mounted event (on an element border) or a standalone event.
  3. Click on either option. The BPEL Properties dialog displays.
     
    end event dlg
     
  4. In the Name field, type a name for the Event.
  5. Click on the drop-down arrow in the Result Type field and select the required type.

Depending on the result type you select, further details might be required.

If you select Message:

  1. The Details tab changes, as below.
     
    EndEventMssg
     
  2. To the right of the Web Service field, click on the [ ... ] button and select a BPEL web service from the list.
  3. To the right of the Message field, click on the [ ... ] button and select a message from the list of all messages in the selected web service.
  4. Go to step 10.

If you select Error:

  1. The Details tab changes, as below.
     
    EndEventError

 

  1. In the Error Code field, type the required error code.
  2. Go to step 10.

If you select Compensation:

  1. The Details tab changes, as below.
     
    EndEventComp
     
  2. To the right of the Activity field, click on the [ ... ] button and select an Activity from the list of all Activities in the process.
  3. Go to step 10.

If you select Terminate:

  1. No action is required on the Details tab. Go to step 10.

If you select Multiple:

  1. The Details tab changes, as below.
     
    EndEventMultiple

 

  1. To the right of the Events field, click on the [ ... ] button and select further events from the list of events in this process that might terminate the process.
  2. Go to step 10.

Resume the procedure:

  1. Click on the Assignments tab.
     
    EndEventAssign
     
  2. (Optional) To the right of the field, click on the [ ... ] button and select one or more Assignment elements from the list of Assignments created in the Supporting Elements package.

Note:

Click on the UML button if you need to define further properties of the End Event, using the normal element Properties dialog.

Alternatively, right-click on the element and select the Properties context menu option.

  1. Click on the OK button to close the dialog.

 

To return to the BPEL Properties dialog for subsequent editing:

  • Double-click on the element in the diagram or Project Browser (the Shows Properties option must be selected in the Double click on browser panel of the Options dialog) or
  • Right-click on the element in the diagram or Project Browser and select the BPEL | BPEL Properties context menu option.