Model 3d - Data Objects
How-to
Model 3d uses a Data Object to transfer data to the process instance.
Approach
-
The first activity defines the variables
x = 3
andy = 4
-
In the data object we define
x = 5
in the Expression field (see the highlighted area in the figure below) -
The Data Association from the data object to the second activity tells the activity to read data, that has been defined in the data object.
-
Therefore the former x-value gets overwritten.
-
To test this, we set up the conditions at the exclusive gateways like this:
-
Upper Edge:
x < y
-
Bottom Edge
x >= y
-
-
After running the simulation, the report will tell you, that x indeed has been overwritten.
Of course you can also write data into a Data Object by inverting the Data Association’s direction. |
Report
See below for the run configuration, which we set up to receive the report statistics from below.
Please refer to the section Experiment Results for more information on the report specific data.
Run configuration
-
Stochastic Seed: 12345
-
Simulation start date: 1/1/2014 12:00:00 a.m.
-
Simulation stop time: 240
-
Simulation stop time unit: Hours
Report statistics
-
The process cycle times and the activity run-rimes (Figure 3 and Figure 4) show us that the variable x indeed is bigger than y
-
Also if you take a look at the gateway details (not listed here), you will notice that always the same edge has been followed behind the branching exclusive gateway
-
-
Retrospective: x = 3, y = 4
-
But at the second activity we assigned x the value from the data object, which is 5
-
-
236 process instances have been completed throughout the simulation
-
The number of completed
also equals 236 -
These numbers tell us that x is always greater than y (which is not really surprising, because we defined it that way)