thority of a Municipality. The whole process involves
different actors who interacts to each other exchang-
ing information and/or documents (represented in the
model as specific messages). The involved actors are:
Applicant, the private citizen/company who needs to
obtain the building permit and triggers the whole pro-
cess; Clerk, the front-office employee of the Build-
ing Authority who receives the Application and is in
charge of a) checking the documentation of the ap-
plication, b) interacting with the applicant in order to
obtain required documents and c) sending back the re-
sult of the application; Senior Clerk, the back-office
employee of the Building Authority who evaluates
and decides on the application; Expert, an external
expert who may be called upon by the Senior Clerk
whenever specific technical issues arise and the final
decision may not be autonomously taken.
The business process spans four swimlanes, one
for each actor. Both the Applicant and the Expert
are external entities, i.e., are not part of the enter-
prise’s business process dynamics. While there was
no reason to represent the Applicant in the resource
model, the Expert was modeled as a DurableResource
(paid by the hour). The Clerk and the Senior Clerk
were modeled as OrganizationalPosition. Other con-
sidered resources in the scenario are energy, modeled
as DurableResource, paper and stamps, both modeled
as ConsumableResource.
The BPMN diagram depicted in Figure 6, which
represents just the process workflow, has an equiva-
lent Xml representation that we are not going to show
for space reason. Instead, we deem interesting to re-
port what the Xml representation of the process con-
text will look like. Suppose we want to set up a
context scenario (say scenario1) for which we intend
to employ all the above mentioned resources. Also,
we need a calendar (official-calendar) to state that
for human resources the working days are Monday
through Friday and the working hours follow the pat-
tern [8:00AM to 12:00AM, 1:00PM to 5:00PM]. We
then specify four different types of application (“cost
object”, in the ABC terminology) that potential appli-
cants may submit. Further, in the specific scenario we
require 1 unit of the Clerk resource type and 2 units
of Senior Clerk resource type, whose hourly costs are
10eand 20erespectively. Listing 2 reports an Xml
excerpt of the definition of the scenario, the cost ob-
jects and the Clerk. Note that all the new elements
describing the process context, and that are out of the
BPMN standard, have been assigned a bpsim prefix,
while BPMN elements shows no prefix.
Listing 2: XML excerpt defining the scenario, the cost ob-
jects and the Senior Clerk resource.
< d e f i n i t i o n s i d = " si d −6cc 24 11a − . . . "
xm lns= " h t t p : / / www . omg . o r g / s p e c /BPMN/2 01 00 52 4/MODEL" >
< x m l n s : b psi m =" h t t p : / / www . u n i c t . i t / bpmn / bps im / 2 . 0 " . . . >
<i mp or t l o c a t i o n =" BPSIM20 . xs d "
na m es pa c e =" h t t p : / /www. u n i c t . i t / bpmn / bpsim / 2 . 0 "
i mpo r t T y p e = " h t t p : / / www . w3 . o rg / 2 0 0 1 / XMLSchema " / >
< e x t e n si o n d e f i n i t i o n =" bps im:BP MN Ex tensi on "
m u s t U n d e r s t a n d = " t r u e " / >
< c a t e g o r y i d =" bpsim− s c e n a r i o s " name= " BpSim S c e n a r i o s " >
< c a t eg o r y V a l u e i d = " s c e n a r i o 1 " v a lu e = " S c e n a r i o 1 ">
< e x t e n s i o nE l e m e nt s >
< b p s i m : sc e n ar i o d e f a u l t = " t r u e " >
< b ps i m : ti m e U nit >month< / bp s i m :t i m e Un i t >
<bpsim :moneyU nit >EUR< / bps im:mone yUnit>
< bp s im: m ax I nst a nc e s >100 000 0< / b ps i m:m a xI n sta n ce s >
< b p s i m : s t a r t I n s t a n t >2015− 01−01 T0 0 : 0 0 : 0 0 . 00 0
< / b p s i m : s t a r t I n s t a n t >
< b p s i m : e n d I n sta n t >2018−01−01 T 0 0 : 0 0: 0 0 . 0 00
< / b p s i m : e n d Inst a n t >
< / b p s i m : sc e n a ri o >
< / e x t e n s i o n El e m e n ts >
< / c a teg o r y V a l u e >
< / c a t e g o r y >
< c a t e g o r y i d =" bpsim− c o s t − o b j e c t s " name= " BpSim C os t
O b je c t s ">
< c a t eg o r y V a l u e i d = " a p p l i c a t i o n " v al u e =" A p p l i c a t i o n " >
< e x t e n s i o nE l e m e nt s >
< b ps i m : co s t O bj e c t Ty p e i d =" a p p l i c a t i o n − m a i n t e n a n ce "
name= " Ma i n t e n a n ce " / >
< b ps i m : co s t O bj e c t Ty p e
i d =" a p p l i c a t i o n − b u i l d i n g − r e n o v a t i o n "
name= " B u i l d i ng R en o v a ti o n " / >
< b ps i m : co s t O bj e c t Ty p e
i d =" a p p l i c a t i o n − p r e s e r v a t i o n −and− r e s t o r a t i o n "
name= " P r e s e r v a t i o n an d R e s t o r a t i o n " / >
< b ps i m : co s t O bj e c t Ty p e
i d =" a p p l i c a t i o n −u r ba n − r e s t r u c t u r i n g "
name= " Urban R e s t r u c t u r i n g " / >
< / e x t e n s i o n El e m e n ts >
< / c a teg o r y V a l u e >
< / c a t e g o r y >
< r e s o u r c e i d =" s e n i o r − c l e r k " name= " S e n i o r C le r k " >
< e x t e n s i o nE l e m e nt s >
< b p s i m : r eso u r c e t y p e = " O r g a n i z a t i o n a l P o s i t i o n " >
< b p s i m : u n i t >#HR< / b p s i m : u n i t >
< b ps i m : ti m e U nit >h< / bp s i m:t i m e Un i t >
<bpsim :moneyU nit >EUR< / bps im:mone yUnit>
< bp s im : usa g e s c e n a r i o R e f = " s c e n a r i o 1 ">
< b p s i m : a v a i l a b i l i t y c a l e n d a r R e f = " o f f i c i a l − c a l e n d a r ">2
< / b p s i m : a v a i l a b i l i t y > < !−− 2 #HR −−>
< b p s i m : u ni t C o s t t im eB ou nd = " t r u e " > 20 . 0 0
< / b p s i m :un i t C o s t > < !−− 20 EUR / h / #HR −−>
< / bp s im : us a g e >
< / b p s i m : res o u r c e >
< / e x t e n s i o n El e m e n ts >
< / r e s o u r c e >
In Listing 3 we show how to assign resources
to a specific task. The bpsim:resourceConsumption
tag models the statistical behaviour “ResourceCon-
sumption” of Figure 5 discussed in Section 3.4.
Specifically, the send invoice task is assigned ex-
actly one Clerk, an amount of energy that is dis-
RDBPM 2015 - Special Session on Research and Development on Business Process Management
310