You can simulate execution with different data values that might be received by the process from receive, invoke, onMessage, and onEvent activities. You can load sample values from either the Participants or Process Variables view or the Properties view of an activity.
If you have created sample data files in the Project Explorer, in the sample-data folder, you can select a data file during simulation. For a message that is missing sample data, a Sample Data dialog displays appropriate selection, as shown in the example.
During simulation, you can override data values on-the-fly for any activity that has not yet executed.
To override loaded sample data for an input and output messages:
From the Process Editor canvas, select a Receive, Invoke, onMessage, or onEvent activity.
In the Properties view, select the All tab and do one of the following:
For a receive, onMessage, or onEvent, click
for the Input Message or From Part row
For an invoke, click
for the Output Message or To Part row
Set Simulation Data
dialog, do the following:
Select the checkbox next to Override sample data for simulation
Select the Dialog Button at the end of a row, as shown.
For simple data types, edit the data value in the Sample dialog and click
. For complex message types, load a data file.
Edit any additional values for other message parts and click
To override loaded sample data for an invoke fault message:
From the Process Editor canvas, select an Invoke activity that has an output and a fault message defined.
In the Properties view, set the Result property to Fault.
Select a Fault Name from the list.
Select a Fault Message, and click
Set Sample Data
dialog, type in a value for the fault message.