03.12.2012 Views

xoEPC - Jan Mendling

xoEPC - Jan Mendling

xoEPC - Jan Mendling

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

74 3. Event-driven Process Chains (EPC)<br />

propagated, and this way the initial situation is reproduced. This can be repeated again<br />

and again. Without a sequence of two phases, the transitions could continue infinitely<br />

and the result would be undefined.<br />

w<br />

w<br />

w<br />

a1 a2<br />

i1 o1<br />

a4<br />

a3<br />

w w<br />

w<br />

d<br />

d d<br />

a1 a2<br />

i1 o1<br />

a4<br />

w<br />

a3<br />

w<br />

d d<br />

a1 a2<br />

i1 o1<br />

(a) initial wait context (b) input context changes to dead (c) the loop is dead<br />

Figure 3.15: Propagating dead context in a loop<br />

The precedence of the two phases can also be motivated using an example EPC con-<br />

taining a loop. The propagation of dead context with only one dead input is needed to<br />

accurately mark loops as dead. Figure 3.15 shows the picture of a simple loop with one<br />

XOR-join as entrance and one XOR-split as exit. Initially, the loop might be in a wait<br />

context (a). If the path to the loop becomes dead, this context is propagated into the loop<br />

(b) and to its output (c). If not all join-connectors would propagate dead context with one<br />

dead input, the loop could never become dead. But since this often results in too many<br />

dead arcs, the wait context propagation must be performed afterwards. It guarantees that<br />

arcs that can still be receive a positive token get a wait context.<br />

Phase 3: Negative Token Propagation<br />

Negative tokens can result from branches that are not executed after OR-joins or start<br />

events. The transition relation for negative token propagation includes four firing rules<br />

that consume and produce negative tokens. Furthermore, the output arcs are set to a dead<br />

context. Figure 3.16 gives an illustration of the transition relation. All transitions can<br />

only be applied if all input arcs hold negative tokens and if there is no positive token on<br />

the output arc. In the following section, we will show that this phase terminates.<br />

w<br />

d<br />

a4<br />

d<br />

a3<br />

d<br />

d

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

Saved successfully!

Ooh no, something went wrong!