Model Intermediate Event

An Intermediate Event indicates where an event occurs somewhere between the start and end of a process.

The OMG BPMN 1.1 Specification defines ten types of Intermediate Event (or Trigger). These are:

  • None
  • Message
  • Timer
  • Error
  • Cancel
  • Compensation
  • Conditional
  • Link
  • Signal
  • Multiple

In Enterprise Architect, six of these Trigger types can be mapped to BPEL.

  • Message
  • Timer
  • Error
  • Compensation
  • Conditional
  • Link (but not if the Intermediate Event is edge-mounted on an Activity).

 

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

  1. Open a BPEL diagram created under a BPEL Process.
  2. Drag the Intermediate 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.

Note:

When an Intermediate Event is created as a standalone event, it must have one incoming and one outgoing SequenceFlow (except for a Link Intermediate Event, which can have either incoming or outgoing SequenceFlows, but not both).

  1. Click on either option. The BPEL Properties dialog displays.
     
    IntermEventDlg
     
  2. In the Name field, type a name for the Event.
  3. Click on the drop-down arrow in the Trigger Type field and select the required type.

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

If you select Message:

  1. To the right of the Web Service field, click on the [ ... ] button and select a BPEL web service from the list.
  2. 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.
  3. Go to step 11.

If you select Error:

  1. The Details tab changes, as below.
     
    IntermediateErrorDlg

 

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

If you select Compensation:

  1. The Details tab changes, as below.
     
    IntermediateCompDlg
     
  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.

Note:

If the Compensation Intermediate Event is edge-mounted on an Activity, create a BPMN 1.1 Association connector from this Intermediate Event Activity to a Compensation Activity. Ensure that the IsCompensation tag for the Activity is set to true.

  1. Go to step 11.

If you select Timer:

  1. The Details tab changes, as below:
     
    IntermediateTimerDlg

 

  1. In the Time Cycle field, type the value of the time cycle.
  2. The Time Date field defaults to today's date. If it is necessary to change the date, click on the checkbox and the drop-down arrow and select a new date from the calendar.

Note:

The Time Cycle and Time Date fields are mutually exclusive, so you can only set one of them.

  1. Go to step 11.

If you select Conditional:

  1. The Details tab changes, as below.
     
    IntermediateCondDlg
     
  2. To the right of the Condition field, click on the [ ... ] button and select an element from the list of Condition elements created in the Supporting Elements package.
  3. Go to step 11.

If you select Link:

  1. The Details tab changes, as below.
     
    IntermediateLinkDlg
     

Note:

A Link Intermediate Event can be used as either a GoTo or an Off-page connector. Therefore this Event can have either incoming or outgoing Sequence Flows, but not both.

  1. Close the dialog, and drag a Sequence Flow connector from the Toolbox to create a connector either from or to the appropriate Activity element.
  2. If you have created an outgoing Sequence Flow from the Event to an Activity, no further details are required.
  1. If you have created an incoming Sequence Flow to the Event from an Activity, right-click on the Event and select the BPEL | BPEL Properties context menu option. The BPEL dialog redisplays as shown below:
     
    IntEventLink

 

  1. To the right of the Link Event field, click on the [ ... ] button and select the target Link Intermediate Event from the list.

 

Resume the procedure:

Note:

Click on the UML button if you have to define further properties of the Intermediate 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.