Realtime detection and coloring of matching operator nodes in
workflow nets
Citation for published version (APA):
Eckleder, A., Freytag, T., Mendling, J., & Reijers, H. A. (2009). Realtime detection and coloring of matching
operator nodes in workflow nets. In T. Freytag, & T. Eckleder (Eds.), AWPN2009 Algorithmen und Werkzeuge
für Petrinetze (pp. 56-61). (CEUR Workshop Proceedings; Vol. 501). CEUR-WS.org.
Document status and date:
Published: 01/12/2009
Document Version:
Publisher’s PDF, also known as Version of Record (includes final page, issue and volume numbers)
Please check the document version of this publication:
• A submitted manuscript is the version of the article upon submission and before peer-review. There can be
important differences between the submitted version and the official published version of record. People
interested in the research are advised to contact the author for the final version of the publication, or visit the
DOI to the publisher's website.
• The final author version and the galley proof are versions of the publication after peer review.
• The final published version features the final layout of the paper including the volume, issue and page
numbers.
Link to publication
General rights
Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners
and it is a condition of accessing publications that users recognise and abide by the legal requirements associated with these rights.
• Users may download and print one copy of any publication from the public portal for the purpose of private study or research.
• You may not further distribute the material or use it for any profit-making activity or commercial gain
• You may freely distribute the URL identifying the publication in the public portal.
If the publication is distributed under the terms of Article 25fa of the Dutch Copyright Act, indicated by the “Taverne” license above, please
follow below link for the End User Agreement:
www.tue.nl/taverne
Take down policy
If you believe that this document breaches copyright please contact us at:
openaccess@tue.nl
providing details and we will investigate your claim.
Operator Nodes in Workow Nets
AndreasEckleder
NeroDevelopment&ServicesGmbH,Karlsbad,Germany
aeckleder@nero.com
ThomasFreytag
CooperativeStateUniversityKarlsruhe,Germany
freytag@dhbw-karlsruhe.de
JanMendling
Humboldt-UniversitätzuBerlin,Germany
jan.mendling@wiwi.hu-berlin.de
HajoA. Reijers
EindhovenUniversityofTechnology,TheNetherlands
h.a.reijers@tue.nl
Abstract
Thisworkdescribestheimplementationofanalgorithmtoidentifyand
colorizematchingsplit/join-operatorpairsinworkownetbasedprocess
models within the open source software WoPeD [1]. The concept was
suggestedasapowerfulmeanstoenhancetheunderstandabilityofprocess
graphsin[2]. Theimplementeddetectionandcoloring methodworksin
realtime, i. e. process designers get immediate feedback on actual or
intendedediting activities.
1 Introduction
Theunderstandabilityofprocessgraphsis akeyrequirementforsuccessful
vi-sualprocessmodellingresults. In[2,3]itwasinvestigatedhowthe
understand-ability ofworkownetscan besupported byseveral methods. Oneofthem is
to assign colors to matching pairsof control ow operators (splits and joins).
Theapproachmakesuse ofthe fact that colors arerecognized and associated
withaspecicsemanticsfasterthanotherelementsofvisualization.
Foragivenpairofnodesinaworkownet,thenumberofindependentpaths
leadingfromtheonenodetotheothercanbecalculatedwiththe
max-ow/min-cut algorithm of Ford and Fulkerson [4]. This approach is able to determine
all P/T and T/P handles of a given workow net and therefore suitable to
provewhether wellhandledness appliesornot. Inparticular thetechniquesfor
ndingmatching operatornodesin aworkownetcanalso beappliedto nd
mismatching operator nodesand thus canhelp toperformstructural analysis,
e. g. to checktheexistenceortheviolationofwell-handledness.
In the followingsections, the algorithm for performing the required check
will be introduced along with its formal prerequisites. Afterwards, an
imple-mentationintheopensourceproductWoPeD [1]will besketchedand
Ourdenition ofapairofmatchingnodesisageneralizationof theconceptof
PT/TP-handlesasusedto denewell-handlednessin [5, 6].
Inawell-handledWF-netPN,twonodesx andy arecalledmatching
oper-ator nodes i
•
x isanAND-splitandy anAND-joinorx isanXOR-splitoraplace,and y anXOR-joinoraplace•
there is apair of elementary pathsC1 andC2 leadingfrom x to ysuch that:α(C
1
) ∩ α(C
2
)
={x, y}⇒ C
1
6= C
2
.TheFordandFulkersonalgorithmcanbeusedtoverifythatthereareindeedat
leasttwoelementarypathsleadingfromagivennodex toanothernodey. This
can bedone in analogyto theapproachdescribedin [5] to detectPT andTP
handles. However,todetectallmatchingoperatornodesofagivenworkownet,
allpairsofnodes
{n
1
, n
2
} ∈ (A
s
×A
j
)∪(X
s
×X
j
)∪(X
s
×S)∪(S ×X
j
)∪(S × S
) whereA
s/j
standsfor thenodesof typeAND-split/joinrespectivelyandX
s/j
standsforthenodesof typeXOR-split/join respectively,must be checked. Asonlynodeswith at leasttwoelementsin theirpostsetcanserveasasplit and
only nodes with at least two elements in their preset canserveas a join, we
limitourselectionofpairstothecombinationsof
{n
1
, n
2
}
where|n
1
· | > 1
and| · n
2
| > 1
. Wheneverthemax-ow/min-cutalgorithmisreportingamaximum ow>1foranygivenpairofnodes,thatpairismarkedasamatchingoperatornode. Once all matching operator pairsof agivenworkownetare detected,
their graphical representation can be colorized in a suitable way in order to
stressthesemantical relationbetweenthem. Figure1showsasimpleexample
ofthecoloringalgorithmappliedtoasingleAND-split/join handle.
Figure1: Simplecoloringexample
If multiple distinct handles exist in thesame net, each matching operator
nodepairis assignedan individualcolor(see gure2). Whenassigning colors
tooperator nodepairs,it mustbeconsideredthat assigning anodetoagiven
Figure3: Handleclusteringexample
Since only onesingle colorcanbe assigned to each node at atime, away
mustbefoundtodetermineacommoncolorforoperatornodesthatarepartof
morethanonematching pair. Thisis donebybuildingnode clustersfrom the
list of matching operator node pairs, where a given cluster contains allnodes
ofall pairssharingat least onecommon node. Figure 3showsan application
exampleofthisclusteringalgorithm, resultingin thesamecolorbeingusedfor
multiplematchingoperatorhandles{t1,t7}, {t1,t5}and{t1,t10}.
3 Implementation
WoPeD is an open source, Java-based graphical editor for workownets
sup-portingthewell-established"vanderAalst"notation[6]. Thetoolismaintained
via Sourceforge, a common platform for the distributed development of free
devel-toggle button on the toolbar. When coloring is switched on, each cluster of
matchingoperatorsis assignedoneof thecolorsfrom aselectionpalette. The
paletteitselfcanbecreatedwithinasettingsdialog(seegure4)andlledwith
arbitrarycolorvalues.
Figure4: A settingsdialogallowsthecongurationofopticalappearance
There is a special neutral color (usually white) that is used for all nodes
thathavenotbeenidentiedasmembersofanypairorclusterbythealgorithm.
Theirgraphicalrepresentationmatchesthatofstandardnodeswhenthecoloring
featureisdisabled.
Inenabled mode,theworkownetgraphisconstantlymonitoredfor
user-inicted changes. If a relevant change is detected, the coloring algorithm is
executed,producing apossiblynewset of nodeclusters. Each clusterreceives
anindividualcolorfromthepaletteuntil allcolorsarein use. Ifthishappens,
colors must be re-used or the palette must be extended. Finally, the visual
representationoftheworkownetisupdatedusingthenewcolors. Toenhance
thevisualfeedbackofcorrectmodelling,onlynodepairsthatdonotviolatethe
rulesofwell-handlednessareconsideredforcoloring.
Thecoloringalgorithm hasbeenimplemented ontopofasimplied
repre-sentationof thetransformedworkownet. This transformedrepresentationis
derived fromthe originalgraph
G
= (S, T, F )
by insertingarstnoden' and asecondnoden foreachnoden
∈ S ∪ T
,andthencreatinganarcconnectinginsertedforall arcs
(x, y) ∈ F
ofthe original net. Theimplementation of the Fordand Fulkerson algorithmis derivedfrom theoneintroducedin [10], withthemodicationtoselectnodesbasedonbreadth-rst search. Thealgorithm
runsatpolynomialtime.
Buildingthenodeclusterswhoseindividualnodesaresharingonecolorhas
beenimplementedbyusingasimple,iterativealgorithmasfollows:
1. LetAbealistofsetsofnodes,eachsetconsistingofoneofthematching
nodepairsdetected
2. While
a
∩ b 6= ∅
foranya, b
∈ A
witha
6= b
,setA
= A r {a, b} + {(a ∪ b)}
Theexemplaryworkownetshown in gure3showsatotalofthree operatornode pairs, each with more than onedistinct node paths leadingfrom oneto
another. Eachpairisaddedtoaninitiallistofnodesets:
1. {t1,t7}
2. {t1,t5}
3. {t1,t10}
Inthe rstiteration, {t1, t7} and {t1, t5} are combinedto {t1, t5, t7}. The
secondandlastiterationcombines{t1,t5,t7}and{t1,t10}to{t1,t5,t7,t10}.
Allnodesbelongingtothesameset ofnodesaredrawnwiththesamecolor.
4 Conclusion
Oneshortcomingofourapproachisthefactthatthenumberofcolorsahuman
canclearlydistinguishfrom eachotherisfairlylimited. Apossiblesolutionfor
thiscouldinvolvetheassignmentofspecialpatternsinadditiontoplainpalette
colors(e. g. hatched, stripedorplaid). Suchpatterns couldbeusedto extend
theamount ofdistinguishable handle clusters for complexworkow netswith
moreexistingclustersthanpalettecolorentries.
Thecoloringalgorithmhasbeenimplementedinasucientlygenericwayas
toallowitsapplicationtothegeneralizedproblemofdetectingPT/TP-handles
andthuscontrol-owerrorsinworkownets. Ourimplementationthereforealso
replacesthestructuralworkownetanalysis functionalityof WoPeD, allowing
[1] WoPeDwebsite: www.woped.org,accessed onAug2,2009.
[2] M. D. Lara. Proano: Visual layout for drawing understandable Process
Models.Master'sthesis,TechnischeUniversiteitEindhoven,2008.
[3] J.Mendling,H.A.Reijers,andJorgeCardoso.WhatMakesProcessModels
Understandable? InG.Alonso,P.DadamandM.Rosemann,editors,
Pro-ceedingsofthe5thInternationalConferenceBusinessProcessManagement
(BPM2007),LectureNotesinComputerScience4714,48-63.Springer
Ver-lag, Berlin,2007.
[4] L.R.FordandD.R.Fulkerson: Maximalowthroughanetwork,Canad.
J.Math.8(1956),399-404.
[5] H. M.W.Verbeek: VericationofWFnets.PhDdissertation,Technische
UniversiteitEindhoven,2004.
[6] W. M.P.vanderAalstandK.vanHee: WorkowManagement: Models,
Methods,andSystems,2002.
[7] T. Freytag and S. I. Landes: PWFtool - aPetri net workow modelling
environment.AWPN2003-ResearchReport,CatholicUniversityof
Eich-staett,2003.
[8] C. Flenderand T. Freytag: Visualizing theSoundnessof Workow Nets.
AWPN2006-ResearchReport,UniversityofHamburg,2006.
[9] A. Eckleder and T. Freytag: WoPeD 2.0 goes BPEL 2.0. AWPN 2008
-ResearchReport,UniversityofRostock,2008.
[10] T. Ihringer: Diskrete Mathematik: Eine Einführung in Theorie und