Add sample values to the Logical People Group or other assignment role for testing.
Simulation is an Process Developer feature, described in more detail in the
Process Developer Guide
.
You can simulate the execution of a BPEL process that includes a People activity.
To Set Simulation Properties for a People activity:
Before you begin simulation, put the All tab of the People activity in focus.
Under the Simulation category, select values for fault and output messages and their attachments, as you normally do for a Web interaction activity, such as a reply.
Enter an optional value for an actual owner, if desired. See the information below on simulating with Logical People Groups.
Add comments, if desired, as described in
Simulating Comments Returned from a Task
.
Select an outcome from the Status list:
Completed
. This is the task state for a normal completion.
Failed
. Select this to simulate fault handling, and select the fault to simulate.
Expired
. If you set a task expiration deadline, you can simulate the outcome. For fault handling details, see
Catching a Fault Thrown by the People Activity
Skipped
. If you selected the IsSkippable attribute for the task, you can simulate the process by skipping the People activity.
During or after simulation, you can view the data that is sent to the task client application. For details, see
Viewing Task Input Data While Simulating
.
To Simulate Logical People Groups:
You can select users or groups to simulate with if your task, assignment activity, transition condition, or other construct is using a Logical People Group.
On the Outline view, select a Logical People Group.
In the All tab, under the Simulation category, click (...).
In the
Organizational Entity Definition
dialog, select Generate User or Generate Group.
In the resulting literal definition, fill in the
<user>
or
<group>
elements with sample values.
If you do not specify an Organizational Entity Definition, a default sample value of one group, named as the Logical People Group is automatically added as a simulation value.
To Simulate a Process Initiator:
If your People activity uses the B4P custom function
getProcessInitiator
, you can simulate the returned value by selecting a Process Initiator in the All tab of the process’ Properties view.