07.03.2014 Views

BPMN and Beyond Business process modelling notation, workflow ...

BPMN and Beyond Business process modelling notation, workflow ...

BPMN and Beyond Business process modelling notation, workflow ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

elow, an instance of WorkflowTransition(node) where data <strong>and</strong> control conditions <strong>and</strong> data<br />

operations are set to empty since they are unrelated to how start events are defined in <strong>BPMN</strong>.<br />

By trigger(node) we indicate the set of types of (possibly multiple) event triggers that may<br />

be associated to node, each single one of which can be one of the following: a message, a timer, a<br />

condition (in the <strong>BPMN</strong> document termed a rule), a link or none. The <strong>BPMN</strong> st<strong>and</strong>ard document<br />

leaves it open how to choose a single one out of a multiple event associated to a node in case two<br />

or more events are triggered there simultaneously. This means that the non-deterministic choice<br />

behavior is not furthermore constrained, so that we use the ASM choose operator to select a single<br />

event trigger <strong>and</strong> thereby a rule StartEventTransition(node, e) for execution, each of which<br />

is parameterized by a particular event e ∈ trigger(node). 19 This reflects the st<strong>and</strong>ard requirement<br />

that “Each Start Event is an independent event. That is, a Process Instance SHALL be generated<br />

when the Start Event is triggered.” [15, p.36] 20<br />

StartEventTransition(node) =<br />

choose e ∈ trigger(node) StartEventTransition(node, e)<br />

By the best practice normal form we can assume that there is exactly one outgoing arc out,<br />

namely after replacing possibly multiple outgoing arcs by one outging arc, which enters an <strong>and</strong>split<br />

gateway with multiple outgoing arcs. This captures that by the <strong>BPMN</strong> st<strong>and</strong>ard document<br />

“Multiple Sequence Flow MAY originate from a Start Event. For each Sequence Flow that has<br />

the Start Event as a source, a new parallel path SHALL be generated . . . Each path will have a<br />

separate unique Token that will traverse the Sequence Flow.” [15, Sect.9.3.2 p.38-39] Therefore a<br />

StartEventTransition(node, e) rule fires when the EventCond(node) is true that e is Triggered.<br />

It yields as event EventOp(node, e) to ConsumEvent(e) <strong>and</strong><br />

StartEventTransition(node, e) rule yields as CtlOp(node) to Produce a startToken on<br />

out. The produced token is supposed to contain the information needed for “tracking the path(s) of<br />

the Token through the Process” [15, p.35]. Since this information is not furthermore specified by the<br />

st<strong>and</strong>ard document, in our model it is kept abstract in terms of an abstract function startToken(e).<br />

Traditionally it is supposed to contain at least an identifier for the just startede <strong>process</strong> instance.<br />

StartEventTransition(node, e) =<br />

if Triggered(e) then Produce(startToken(e), out)<br />

ConsumEvent(e)<br />

Remark to event consumption in the start rule. If the intention of the st<strong>and</strong>ard document<br />

is that not only the chosen triggered event but all triggered events are consumed, it suffices to<br />

replace ConsumEvent(e) by the following rule:<br />

forall e ′ ∈ trigger(node) if Triggered(e ′ ) then ConsumEvent(e ′ )<br />

.<br />

The definition of Triggered(e) is given by Table 9.4 in [15].<br />

The submachine ConsumEvent(e) is defined depending on the type of event e. Messages <strong>and</strong><br />

timers represent (values of) monitored locations with a predetermined consumption procedure.<br />

The st<strong>and</strong>ard document leaves it open whether upon firing a transition triggered by an incoming<br />

message, that message is consumed or not. 21 Similarly it is not specified whether a timer event is<br />

automatically consumed once its time has passed (precisely or with some delay). Therefore for the<br />

<strong>BPMN</strong> 1.0 st<strong>and</strong>ard, for these two cases the submachine ConsumEvent remains abstract, it has<br />

to be specified by the intended consumption discipline of each system instance.<br />

The same holds for events of type None or Rule.<br />

19 An alternative would be to use a (possibly local <strong>and</strong> dynamic) selection function select Event which each<br />

time chooses an event out of the set trigger(node).<br />

20 See also the remark below.<br />

21 This is an important issue to clarify, since a same message may be incoming to different events in a<br />

diagram.<br />

16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!