Set Cost Parameters on Activity
Create the BPMN Model (Activities)
- In the Browser window, create a StartEvent1, a GlobalTask1, two AbstractTasks, and an EndEvent1.
- Ctrl+drag the elements from the Browser window onto a diagram, pasting GlobalTask1 as an Invocation (Call Activity) called call global (100+2*10).
- Give the elements names and connect them with Sequence Flows; the two AbstractTasks should be called:
- Task (100+3*30) and
- Task (100+4*20).
BPSim Configuration
Create a Business Process Simulation configuration Artifact in the diagram, right-click on it and select the 'Configure BPSim' option. Set the configuration to link to the Package containing the BPMN model elements and configure these BPSim parameters as indicated.
|
|
|
- Click on the BPSim Configuration Artifact and, for the Scenario Parameter 'Time Unit', click on the 'Value' drop-down arrow and select 'hours'.
- In the 'Value' field for the 'Duration' parameter, set the value to '0001 00:00:00' (1 day).
This Time Unit is used to calculate the Time Cost (Time cost = Unit Cost * Time), so make sure the Unit Cost is based on the correct Time Unit.
|
|
- On the diagram, click on StartEvent1.
- Click on the New Parameter drop-down arrow and select 'Control'.
- In the 'Parameter' field click on the drop-down arrow and select 'TriggerCount'.
- In the 'Value' field type '1'.
|
|
- On the diagram click on Task(100+4*20).
- Click on the New Parameter drop-down arrow and select 'Time'.
- Click on the 'Parameter' drop-down arrow and select 'ProcessingTime'.
- In the 'Value' field set the value to '000:000:000 004:00:00' (4 hours).
- Click on Task(100+3*30) on the diagram and repeat steps 2, 3 and 4, setting the 'Value' field to '000:000:000 003:00:00' (3 hours).
- Click on GlobalTask1 on the diagram and repeat steps 2, 3 and 4, setting the 'Value' field to '000:000:000 002:00:00' (2 hours).
|
|
- On the diagram, click on Task(100+4*20).
- Click on the New Parameter drop-down arrow and select 'Cost'.
- In the 'Parameter field click on the drop-down arrow and select, in turn:
- 'FixedCost', then in the 'Value' field click on the button, select
the 'Constant' tab and 'Floating', and in the 'Constant Floating' field
type '100'; click on the OK button
- 'UnitCost' - do the same, setting the 'Constant Floating' field to '20'.
- On the diagram, click on Task(100+3*30) and repeat Steps 2 and 3, setting:
- 'FixedCost' to '100
- 'UnitCost' to '30'.
- On the diagram, click on GlobalTask1 and repeat Steps 2 and 3, setting:
- 'FixedCost' to '100
- 'UnitCost' to '10'.
- On the diagram, click on BPSim Cost and repeat Steps 2 and 3, setting:
- 'FixedCost' to '50'
- 'UnitCost' to '5'.
|
Simulation
- On the 'Configure BPSim' dialog, click on the 'Execute' tab.
- Click on the button'.
- When the simulation is complete, click on the 'Review' tab, and on the 'Standard Results Report' tab.
- Filter the report by clicking on the button and selecting the 'Show only Non-Empty Items' option.
Analysis
|
|
|
- Total Completion Cost is 100, matching the FixedCost (100) setting in BPSim
- Total Time Cost is 80, calculated as ProcessingTime (4 hours) * UnitCost (20/hour)
|
|
- Total Completion Cost is 100, matching the FixedCost (100) setting in BPSim
- Total Time Cost is 90, calculated as ProcessingTime (3 hours) * UnitCost (30/hour)
|
|
- Total Completion Cost is 100, matching the FixedCost (100) on GlobalTask1 setting in BPSim
- Total Time Cost is 20, calculated as ProcessingTime (2 hours) * UnitCost (10/hour) on GlobalTask1
|
|
- Total Completion Cost is 50, matching the FixedCost (50) setting in BPSim
- Total Time Cost is 45, calculated as Total ProcessingTime of all tasks (4 + 3 + 2 = 9 hours) * UnitCost (5/hour)
|