• No results found

Realtime detection and coloring of matching operator nodes in workflow nets

N/A
N/A
Protected

Academic year: 2021

Share "Realtime detection and coloring of matching operator nodes in workflow nets"

Copied!
7
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

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.

(2)

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

(3)

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

) 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

(4)

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

(5)

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 foreachnode

n

∈ S ∪ T

,andthencreatinganarcconnecting

(6)

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

(7)

[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

Referenties

GERELATEERDE DOCUMENTEN

(2) In stmaryrd.sty, the commands \binampersand and \bindnasrepma are defined as delimiters, but their names clearly imply that they are intended to be binary operations (and

Institutional logics can change through competition with other logics, for example when different types of organizations are forced into association. Realignment of logics may

Connect all pairs of dots that are at distance 1 from one

First of all we compare the running time and the candidate size generated by the IPPair with the other algorithms on figure 1 (due to limit space we include only the results with

In this paper, we will focus on the develop- ment of black-box models, in particular least squares support vector machines (LS-SVMs), to preoperatively predict malignancy of

Hypothesis testing showed that self-reported cognitive limitations at work were related to work functioning (P<0.001), fatigue (P=0.001) and depressive symptoms (P<0.001),

Inkomen en leeftijd zijn twee belangrijke determinanten van het gebruik van (minimaal één) IoT- apparaten voor medische doeleinden, gezondheid of het sporten.. In Figuur 2.6

In this article, we describe the design of a randomized, controlled, multicenter clinical trial comparing: (1) a low to moderate intensity, home-based, self-management physical