Run the sample

Before you run this sample, make sure that security is enabled for WebSphere® Process Server and that the users and groups are created as required, for example, by using the script ADDUSERS1.BAT as described in the in the Introduction section.

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

Business Process Choreographer Explorer (BPC Explorer)

To start BPC Explorer in the integrated test environment of your WebSphere® Integration Developer, follow these steps:

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

To start BPC Explorer on WebSphere Process Server, follow these steps:

  1. In a web browser, open URL http://yourhost:yourport/bpc.
  2. Note: Replace yourhost with your server's internet address and replace yourport with the port of your server's HTTP transport, for example

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

  1. Enter a valid User ID and Password. The default User ID is admin.
  2. Click Login.

The BPC Explorer opens:

Start the business process

To start the assessment process, follow these steps:

  1. Switch to the BPC Explorer.
  2. Log in with user ID sellerB.
  3. In the Process Templates section, click Currently Valid.
  4. The Currently Valid Process Templates view is displayed:

  5. Select RiskAssessmentProcess and click Start Instance.
  6. The Process Input Message view opens:

  7. Optionally, enter a Process Name.
  8. In the name field, enter a value of type string.
  9. In the amount field, enter a numeric value with at least one digit after the decimal point.
  10. In the creditInfo field, enter a value of type string.
  11. In the userid field, enter the user ID. In this sample, enter sellerB (case sensitive).
  12. Click Submit.

Work with the staff activities

To work with the staff activities of the risk assessment process, follow the steps outlined in the following sections.

Rate credit

  1. Switch to the BPC Explorer.
  2. Log in with user ID approverB, be sure to enter the user ID in mixed case exactly as shown.
  3. The My To-dos view is displayed:
  4. Select rate credit, then click Work on.
  5. The Task Message view is displayed:

  6. In the rating field, enter a value of type string.
  7. Click Complete.

The My To-dos view is displayed again. Note that even after pressing Refresh the next task activity approve does not show up for approver B but only for approver A and approver C, due to the four eyes principle implemented in this sample.

Approve

  1. Switch to the BPC Explorer.
  2. Log in with either user ID approverA or approverC.
  3. The My To-dos view is displayed:
  4. Select approve and click Work on.
  5. The Task Message view is displayed:

  6. In the decision field, enter a value of type string.
  7. Click Complete.

See decision

  1. Switch to the BPC Explorer.
  2. Log in with user ID supervisorB.
  3. The My To-dos view is displayed:
  4. Select see decision and click Work on.
  5. The Task Message view is displayed:

  6. In the acknowledgement field, enter a value of type string.
  7. Click Complete.

See result

  1. Switch to the BPC Explorer.
  2. Log in with user ID sellerB.
  3. The My To-dos view is displayed:
  4. Select see result and click Work on.
  5. The Task Message view is displayed:

  6. In the acknowledgement field, enter a value of type string. Note that this acknowledgement value will be stored in a different process variable than the acknowledgement value of the previous human task activity.
  7. Click Complete.