• Aucun résultat trouvé

Realtime Detection and Coloring of Matching Operator Nodes in Workflow Nets

N/A
N/A
Protected

Academic year: 2022

Partager "Realtime Detection and Coloring of Matching Operator Nodes in Workflow Nets"

Copied!
6
0
0

Texte intégral

(1)

Operator Nodes in Workow Nets

AndreasEckleder

NeroDevelopment&ServicesGmbH,Karlsbad,Germany

[email protected]

ThomasFreytag

CooperativeStateUniversityKarlsruhe,Germany

[email protected]

JanMendling

Humboldt-UniversitätzuBerlin,Germany

[email protected]

HajoA. Reijers

EindhovenUniversityofTechnology,TheNetherlands

[email protected]

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 akeyrequirementforsuccessfulvi-

sualprocessmodellingresults. In[2,3]itwasinvestigatedhowtheunderstand-

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

leadingfromtheonenodetotheothercanbecalculatedwiththemax-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 besketchedanddemon-

strated. Finally,aconclusionwill begivenwithideastoenhance theproposed

(2)

Ourdenition ofapairofmatchingnodesisageneralizationof theconceptof

PT/TP-handlesasusedto denewell-handlednessin [5, 6].

Inawell-handledWF-netPN,twonodesx andy arecalledmatchingoper-

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

)

where

A s/j

standsfor thenodesof typeAND-split/joinrespectivelyand

X s/j

standsforthenodesof typeXOR-split/join respectively,must be checked. As

onlynodeswith 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,thatpairismarkedasamatchingoperator

node. 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

matchingoperatorpairis notmutually exclusive,so agivennodecanbepart

ofmorethanonematch.

(3)

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

softwareprojects. Severalpublications haveaccompanied theemerging devel-

(4)

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,theworkownetgraphisconstantlymonitoredforuser-

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 foreachnode

n ∈ S ∪ T

,andthencreatinganarcconnecting

(5)

insertedforall arcs

(x, y) ∈ F

ofthe original net. Theimplementation of the Fordand Fulkerson algorithmis derivedfrom theoneintroducedin [10], with

themodicationtoselectnodesbasedonbreadth-rst search. Thealgorithm

runsatpolynomialtime.

Buildingthenodeclusterswhoseindividualnodesaresharingonecolorhas

beenimplementedbyusingasimple,iterativealgorithmasfollows:

1. LetAbealistofsetsofnodes,eachsetconsistingofoneofthematching

nodepairsdetected

2. While

a ∩ b 6= ∅

forany

a, b ∈ A

with

a 6= b

,set

A = A r {a, b} + {(a ∪ b)}

Theexemplaryworkownetshown in gure3showsatotalofthree operator

node 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

PT/TP-handledetectionwithoutfallingbacktoexternaltoolsasWoan.

(6)

[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.SpringerVer-

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,CatholicUniversityofEich-

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 An-

wendungen,2002.

Références

Documents relatifs

Specifically, the omniscient strategy reads on the fly and sequentially the input stream and for each read element j, decides whether j is a good candidate for being stored into

We will see in section 4 that asymptotically, the best way SBM fits data generated with a model with different clusters on source and target nodes such as on Figure 5 (b) is to add

|M atchingDocs| | (|M atchingDocs∩ReturnedDocs| = l) (1) With the knowledge of targeted search engine’s index size, and also the num- ber of documents matching seed query,

From Dixmier’s table (cf.. To prove this, we just have to distinguish for a partition of n the parts smaller than h and those larger than h + 1... By the above remark, j must be

In graph theory and network analysis, the most important tool is centrality measure. Centrality measures are considered as structural measures of influence that

Diagonalization of the Heun-Askey-Wilson operator via the algebraic Bethe ansatz In this section, using (2.21) the Heun-Askey-Wilson operator associated with (1.16) is diagonalized

La recherche d’anticorps dirigés contre le SARS-CoV-2 (IgM, IgG et IgA selon les kits diagnostiques) doit être envisagée chez les patients ayant un ou des tests PCR négatifs,

At every round, inside each cluster the processes first agree on the same value (using an efficient underlying shared memory consensus algorithm), and then use a