Скачиваний:
25
Добавлен:
28.01.2021
Размер:
7.15 Mб
Скачать

[ Activity

e

G

Q

]

 

<scope>

 

<eventHandlers>

 

<onEve nt partnerLin k="[Q, e-operation-interface]"

 

operation="[e-operation]">

=

<scope>[G]</scope>

 

</onEvent>

 

</eventHandlers>

 

[Activity]

 

 

</scope>

The partner link associated with the WS-BPEL onEvent is derived from the interface referenced by the operation of the boundary Message Event.

The same mapping applies to a non-interrupting boundary Timer Event, using a WS-BPEL onAlarm handler instead.

Error Boundary Events

A BPMN Activity with a boundary Error Event according to the following pattern is mapped as shown.

<flow>

<links>

<link name="[l1]"/>

...

<link name ="[l4]"/> </links>

<scope>

<sources><source linkName="[l1]"/></sources>

<faultHandlers>

 

 

 

 

 

 

 

 

<catch faultName="[e-error]">

 

 

 

 

 

 

 

 

<empty>

[

 

 

 

 

 

]

 

<sources><source linkName="[l3]"/></sources>

 

 

 

 

 

 

</empty >

Activity

l1

G1

 

l2

 

</catch>

 

 

</faultHandlers>

 

 

 

 

 

 

 

 

 

 

=

[Activity]

 

 

 

 

 

</scope>

l3

 

G2

 

 

 

<flow>

 

 

 

 

<targets><target linkName="[l1]"/></targets>

 

 

 

 

 

 

 

 

l4

 

 

<sources><source linkName="[l2]"/></sources>

[G1] </flow>

<flow>

<targets><target linkName="[l3]"/></targets>

<sources><source linkName="[l4]"/></sources> [G2]

</flow>

<empty>

<sources><source linkName="[l2]"/>

<source linkName="[l4]"/></sources> </empty>

</flow>

Business Process Model and Notation (BPMN), v2.0.2

459

Note that the case where the error handling path doesn’t join the main control flow again, is still mapped using this pattern, by applying the following model equivalence.

Activity

G1

G1

 

 

Activity

G2

 

G2

Compensation Boundary Events

A BPMN Activity with a boundary Compensation Event is similarly mapped as shown.

[

Activity

]

 

<scope name="[Activity-name]">

 

<compensationHandler>

 

 

 

=

[G]

 

</compensationHandler>

 

 

 

 

[Activity]

G

 

</scope>

Multiple Boundary Events, and Boundary Events with Loops

If there are multiple boundary Events for an Activity, their WS-BPEL mappings are super-imposed on the single WSBPEL scope wrapping the mapping of the Activity.

When the Activity is a standard loop or a multi-instance and has one or more boundary Events, the WS-BPEL loop resulting from mapping the BPMN loop is nested inside the WS-BPEL scope resulting from mapping the BPMN boundary Events.

The following example shows that mapping for a Sub-Process with a nested Event Sub-Process that has a standard loop with TestTime=“Before,” a boundary Error Intermediate Event, and a boundary Compensation Intermediate Event.

460

Business Process Model and Notation (BPMN), v2.0.2