Run the sample

To run this sample, the Business Process Choreographer Explorer will be used to start processes and work with the human tasks, and a client application delivered with this sample will be used to perform the queries based on the query properties.

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 v7.0.
  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 the URL http://yourhost:yourport/bpc.
  2. Note:

    Replace yourhost with your server's internet address and 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:

Starting the sample business process

To start the insurance claim process, complete the following steps:

  1. Switch to the BPC Explorer.
  2. In the Process Templates section, click Currently Valid.
  3. The Currently ValidProcess Templates view is displayed:

  4. Select ClaimProcess, then click Start Instance.
  5. The Process Input Message view opens:

  6. Optionally, enter a name for the process in the Process Name field.
  7. In the customerNumber field, enter a number. Remember this number, as it will be needed to search for matching tasks.
  8. In the firstName field, enter a string.
  9. In the familyName field, enter a string.
  10. In the description field, enter a string.
  11. In the amount field, enter a number.
  12. Click Submit.
  13. Repeat steps 2 to 10 to create a second insurance claim process. Be sure to use a different cusomter ID for this second process.

Query all insurance claim review tasks

To retrieve information about all insurance claim review tasks, complete the following steps:

  1. In a Web browser, open the URL http://yourhost:yourport/QueryPropertiesWeb/.
  2. Note:

    Replace yourhost with your server's internet address and replace yourport with the port of your server's HTTP transport, for example

  3. If authentication is requested, enter a valid user ID and password.
  4. The client application is displayed:
  5. Click Search. The query results are displayed:
  6. To return to the start page, click Home.

Query all insurance claim review tasks for a specific customer ID

To retrieve information about all insurance claim review tasks for a given customer ID, complete the following steps:

  1. In a Web browser, open the URL http://yourhost:yourport/QueryPropertiesWeb/.
  2. Note:

    Replace yourhost with your server's internet address and replace yourport with the port of your server's HTTP transport, for example

  3. If authentication is requested, enter a valid user ID and password.
  4. The client application is displayed:
  5. Enter the customer number of an insurance claim process you have started earlier.
  6. Click Search. The query results are displayed:
  7. To return to the start page, click Home.

Working with the human tasks of the insurance claim process

When the insurance claim process is started, a review human task is created. To work with this human task, perform the following steps:

  1. Switch to the BPC Explorer.
  2. In the Task Instances section, click My To-dos.
  3. The My To-dos view opens:

  4. Select one of the ReviewHumanTask tasks and click Work on.
  5. The Task Message view is displayed:

  6. In the result field, either select or unselect the checkbox. The default value is selected.
  7. Click Complete. The My To-dos view opens.

Process output

The insurance claim process is a long-running business process, and the process output message is computed asynchronously. To display the process output message that contains the result of the insurance claim process, follow these steps:

  1. In the BPC Explorer, switch to the Process Templates view.
  2. Select ClaimProcess and click Instances.
  3. The Process Instances for Process Templates view is displayed:

    Note:

    The process instance that was completed in the previous step is in the Finished state.

  4. Click the process instance that is in the Finished state.
  5. The Process Instance view is displayed:

  6. Click the Process Output Message tab.
  7. The process output message is displayed:

Repeat the query for all insurance claim review tasks for a specific customer ID

If you have finished the insurance claim review task for the customer ID you have specified in the Query all insurance claim review tasks for a specific customer ID section above, this task will no longer be shown when you repeat this query. This is due to the fact that the query only returns tasks that still need to be worked on.

  1. Switch to the client application and enter the customer number you have specified previously.
  2. The query results are displayed:

    Note:

    The insurance claim process for this customer ID has been finished, and therefore no review task exists. When no customer ID is specified, the remaining second insurance claim review task will be shown.