Run the sample

Before you run this sample, make sure that:

To run this sample, use the Business Process Choreographer Explorer.

Business Process Choreographer Explorer (BPC Explorer)

To start the BPC Explorer in the integrated test environment of your WebSphere Integration Developer, perform the following steps:

  1. In WebSphere Integration Developer, switch to the Servers view.
  2. In the table, right-click WebSphere Process Server.
  3. From the pop-up menu, select Launch > Business Process Choreographer Explorer.

To start the BPC Explorer on WebSphere Process Server, perform the following steps:

  1. In a web browser, open URL http://yourhost:yourport/bpc.
  2. Note: yourhost has to be replaced with your server's internet address, yourport has to be replaced with the port of your server's HTTP transport, for example http://localhost:9080/bpc.

If security is enabled, the BPC Explorer opens with a login screen:

  1. Enter a valid User ID and Password.
  2. Click Login.

The BPC Explorer opens:

Start the task

To start a (DemoTask4PPP) task demonstrating the effect of post processing plugin, follow these steps:

  1. Switch to the BPC Explorer.
  2. Log in with user ID user1.
  3. In the Task Templates section, click My Task Templates, the My Task Templates view is displayed.
  4. Select DemoTask4PPP and click Start Instance, the Task Input Message opens.
  5. In the input1 field, enter a value of type string.
  6. Click Submit.

Check task ownership

The Potential Owner role of the task is defined in terms of the group employees containing the users: user1, user2, user3, user4, user5, user6, user7. If no Post Processor Plugin ie employed, these users potential owners are used for the task. In case the plugin is employed, exactly one user is selected and, as auto claim is enabled for the task, this user becomes the owner of the task. In effect, checking for the task owner amounts to determinining whether the plugin has been employed. To perform this check apply the following steps:

  1. Switch to the BPC Explorer.
  2. Log in with user ID user1 (the user that started the task),
  3. In the Task Instances section, click Administered By Me, the Task Instances Administered By Me view is displayed,
  4. Cllick the task DemoTask4PPP, the Task Instance view is displayed,
  5. Check that the task is in state Claimed and the owner of the task is set to one of the users of the group employees.

Start tasks repeatedly

To validate that the plugin logic is performing correctly, repeat above steps for starting a new task and checking for their owner setting. Depending on the specified user selection policy, the following should be observed as new tasks are started: