Architecting and designing : Business Process Analysis (BPA) : Simulation of Process Models : Simulation tutorials : Simulation of BPMN Business Process Flows : Steps to build model : 10. Finishing specification of the parent diagram
  
10. Finishing specification of the parent diagram
Our child diagram is now set up to output attribute values based on whether Family and Standard rooms are available. We must now gather that information in the parent Process Flow diagram.
1 Change focus back to the parent diagram.
2 Open the definition of the gateway Is Room Available?, specify its Stereotype as XOR, and then click the Apply button.
3 On the Sim Fan Out tab, set the Outflow Routing value to Attribute.
Logic for ‘no family room available’
1 On the Sequence Flow line named No Family Room Available, go to the Sim Symbol tab, and choose the Fan Out Logic as Attribute. Click the Apply button. A Sim Attribute tab will appear.
2 On the Sim Attribute tab, specify the logic of the line as follows (and shown in the picture below):
Set Attribute 1 to be User Text 1 = Family
Set the Logic to AND
Set Attribute 2 to be User Value 1 = 0
Setting Attribute Comparison Logic
Logic for ‘family room available’
1 On the Sequence Flow line named Family Room Available, go to the Sim Symbol tab, and choose the Fan Out Logic as Attribute. Click the Apply button. A Sim Attribute tab will appear.
2 On the Sim Attribute tab, specify the logic of the line as follows (and shown in the picture below):
Set Attribute 1 to be User Text 1 = Family
Set the Logic to AND
Set Attribute 2 to be User Value 1 = 1
Logic for ‘no standard room available’
1 On the Sequence Flow line named No Standard Room Available, go to the Sim Symbol tab, and choose the Fan Out Logic as Attribute. Click the Apply button. A Sim Attribute tab will appear.
2 On the Sim Attribute tab, specify the logic of the line as follows (and shown in the picture below):
Set Attribute 1 to be User Text 1 = Standard
Set the Logic to AND
Set Attribute 2 to be User Value 1 = 0
Logic for ‘standard room available’
1 On the Sequence Flow line named Standard Room Available, go to the Sim Symbol tab, and choose the Fan Out Logic as Attribute. Click the Apply button. A Sim Attribute tab will appear.
2 On the Sim Attribute tab, specify the logic of the line as follows (and shown in the picture below):
Set Attribute 1 to be User Text 1 = Standard
Set the Logic to AND
Set Attribute 2 to be User Value 1 = 1
Make sure all the End events are specified
Open the definition of each of the four End events on the diagram, and in each one, go to the Sim Definition tab, and make sure BPMN Event Type is specified as End.
Next topic
11. Specifying that parent diagram has a child
Parent topic
Steps to build model