Run the sample

This sample is initiated by using the Business Choreographer Explorer. To run this sample properly, security has to be enabled for WebSphere Process Server.

To enable security for the integrated test environment of your WebSphere Integration Developer, this Technote may help you to do so.

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 the 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 v6.0.
  3. From the pop-up menu, select Launch > BPC Explorer.
  4. The login page is displayed:
  5. Enter user ID and Password, then click Login.
    Note: Enter the user ID in the proper case, since otherwise authorization may not function properly (although the login may seem to work fine when the wrong case is used).

To start the 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 http://localhost:9080/bpc.

    The login page is displayed:

  3. Enter user ID and Password, then click Login.
    Note: Enter the user ID in the proper case, since otherwise authorization may not function properly (although the login may seem to work fine when the wrong case is used).

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. Be sure username is correctly entered in mixed case.
  3. In the Process Templates Section, click My Process Templates.
  4. The My 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 clearly identifying the process instance so it is recommended to use a name which 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.

Call the custom client

To start the custom client, follow these steps:

  1. Install the 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 http://localhost:9080/spwSample.

  4. The first time you call this page your browser asks you for log in information. Log in with user name approverA. Be sure to enter the name correctly in mixed case.
  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 that you want to start a single person workflow.
  3. Click the Rate Customer button to start the rating process.
  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 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” button to return to the welcome page.

Check the results of the credit approval process

  1. Switch to the BPC Explorer.
  2. Log in with the user ID sellerA.
  3. In the Process Instances Section, click Started By Me.
  4. The Started By Me view is displayed:

  5. Click the Test link 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.