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.

This sample is started by using the Business Choreographer Explorer and then continued by using the custom client shipped with this sample.

Business Process Choreographer Explorer (BPC Explorer)

If you already know how to start a BPC Explorer session, you may proceed to the section Start the credit approval process.

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

The login screen is displayed:

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

Start the credit approval process

To start the credit approval process, follow these steps:

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

  5. Select creditApproval, then click Start Instance.
  6. The Process Input Message view opens:

  7. In the Process Name field enter a string value. In this sample this value is used for identifying the process instance so it is recommended to use a name that is easy to remember.
  8. In the customerName field, enter a value of type string.
  9. In the creditAmount field, enter an integer value.
  10. Click Submit.
  11. Log out from the BPC Explorer.

Call the custom client

To start the custom client, follow these steps:

  1. Install the SinglePersonWFClientEAR.ear file delivered with this sample.
  2. In a web browser, open URL http://yourhost:yourport/spwSample.
  3. Note: Replace yourhost with your server's internet address and replace yourport with the port of your server's HTTP transport, for example

  4. The first time you call this page your browser asks you for log in information. Log in with user name approverA.
  5. The welcome page [Tasklist] is displayed:

Enter the single person workflow sequence (which consists of [Page 1] and [Page 2])

  1. Switch to the welcome page of the custom client.
  2. In the Process ID field, enter the ID of the process for which you want to start a single person workflow.
  3. Click the Rate Customer button to enter the first of two rating steps.
  4. The customer’s rating screen is displayed:

    Note that the field on this screen is already filled with an automatically calculated value.

  5. In the Customer’s Rating field, optionally change the value.
  6. Click on Complete Rating to proceed to the second rating step that is implemented by the Finish Rating activity of the business process.
  7. Optionally, change the value in the Interest Rate field.
  8. Press OK.
  9. The acknowledgement screen appears:

  10. You may click on the “Home” link to return to the welcome page.

Check the results of the credit approval process

  1. Switch to the BPC Explorer.
  2. Log out approverA and log in with the user ID supervisorA.
  3. In the Process Instances section, click Administered By Me.
  4. The Administered By Me view is displayed:

  5. Click on the process instance name hyperlink in the Process Instance Name column.
  6. The Process Instance page is displayed.

  7. Click on the Process Output Message tab.
  8. The output message of the process is displayed. Note that the rating, the loan credit rate and the ID of the approver are displayed here.