Setting up Sample Data Values for Input Output and Fault Messages
Setting up Sample Data Values for Input Output and Fault Messages
Select the source location for the sample you want to add.
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.
You can load sample data before you begin simulation. For information on loading and saving sample data in the Participants or Process Variables view, see
Using Sample Data in Process Variables View.
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
Dialog (...)
for the Input Message or From Part row
For an invoke, click
Dialog (...)
for the Output Message or To Part row
In the
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
OK
. For complex message types, load a data file.
Edit any additional values for other message parts and click
OK.
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.