Run the sample

This sample can be run using the Business Choreographer Explorer. In case you experience problems, please check the troubleshooting section below.

Business Process Choreographer Explorer (BPC Explorer)

If you already know how to start the BPC Explorer you may proceed to the section Start version 1 of the business 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.1.
  3. From the pop-up menu, select Launch > Business Process Choreographer Explorer.

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.

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 version 1 of the business process

Before starting the first version of the business process, make sure the following prerequisites are met:

To run the version 1 of the business process, perform the following steps:

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

    Note that for the template name Approval Process, the attribute Long Running shows the value yes.

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

  6. Optionally, enter a Process Name.
  7. In the customerID field, enter a value of type string, for example 00715.
  8. Click Submit.
  9. Switch to the My To-dos view by clicking Task Instances > My To-dos.
  10. You should see a task in Ready state:

  11. Check the checkbox and click Work on. The Task Message window opens.
  12. In the field approved, either enter the value true or the value false and press Complete.

In the log file, you will find output similar to the output below.

[7/15/07 18:52:09:547 CEST] 00000081 SystemOut   O ApprovalProcess V1: result is false
[7/15/07 18:52:11:625 CEST] 00000081 SystemOut   O Mailing rejection to customer 00715

The business process is finished now and has been automatically deleted because the value yes is specified for the Delete on Completion attribute.

Repeat steps 1 through 6 above to start a second business process instance, for example, using 00716 for the customerID. This time, skip steps 7 through 9 because we want to keep this ApprovalProcess instance running. We will finish this one later, after deploying a new version of process ApprovalProcess.

Start version 2 of the business process

Before starting the second version of the business process, make sure the following prerequisites are met:

To run the evolved version 2 of the business process, perform the following steps:

  1. Switch to the BPC Explorer.
  2. In the Process Templates section, choose the My Process Templates view and click Refresh.
  3. The My Process Templates view is showing the actual list of templates:

    Note that for the template name Approval Process, the Valid From attribute shows a more recent value now. The attribute Long Running shows again the value yes.

  4. Select HandleClaimProcess, and then click Start Instance.
  5. Optionally, enter a Process Name.
  6. In the customerID Field, enter a value of type string, for example 00717.
  7. Click Submit.

This time, you do not need to perform the human task. Instead, you will find output similar to the output below in the log file (previous lines repeated here):

[7/15/07 18:52:09:547 CEST] 00000081 SystemOut   O ApprovalProcess V1: result is false
[7/15/07 18:52:11:625 CEST] 00000081 SystemOut   O Mailing rejection to customer 00715
...
[7/15/07 19:42:33:703 CEST] 00000075 SystemOut   O ApprovalProcess V2: result is true
[7/15/07 19:42:34:953 CEST] 00000075 SystemOut   O Handling warranty claim for customer 00717

Complete the version 1 instance of the business process

Since we did not complete one of the version 1 instances yet, this instance is still running. Now we will complete that instance as well. Perform the following steps:

  1. Switch to the BPC Explorer.
  2. Switch to the My To-dos view by clicking Task Instances > My To-dos.
  3. You should see a task in Ready state.
  4. Check the checkbox and click Work on. The Task Message window opens.
  5. In the field approved, either enter the value true or the value false and press Complete.

In the log file, you will find output similar to the output below (previous lines again repeated here):

[7/15/07 18:52:09:547 CEST] 00000081 SystemOut   O ApprovalProcess V1: result is false
[7/15/07 18:52:11:625 CEST] 00000081 SystemOut   O Mailing rejection to customer 00715
...
[7/15/07 19:42:33:703 CEST] 00000075 SystemOut   O ApprovalProcess V2: result is true
[7/15/07 19:42:34:953 CEST] 00000075 SystemOut   O Handling warranty claim for customer 00717
...
[7/15/07 19:56:02:859 CEST] 00000072 SystemOut   O ApprovalProcess V1: result is true
[7/15/07 19:56:04:766 CEST] 00000072 SystemOut   O Handling warranty claim for customer 00716

Once all process instances of version 1 are finished, you can safely remove the version 1 of the subprocess template from the server, by uninstalling the ApprovalProcessV1App application.

Start version 3 of the business process

Before starting the third version of the business process, make sure the following prerequisite is met:

To run the evolved version 3 of the business process, perform the following steps:

  1. Switch to the BPC Explorer.
  2. In the Process Templates section, choose the My Process Templates view and click Refresh.
  3. The My Process Templates view is showing the actual list of templates:

    Note that this time for the template name Approval Process, the attribute Long Running shows the value no, and the Valid From attribute shows another more recent value now.

  4. Select HandleClaimProcess, and then click Start Instance.
  5. Optionally, enter a Process Name.
  6. In the customerID Field, enter a value of type string, for example 00718.
  7. Click Submit.

    Note: In case you experience problems, please check the troubleshooting section below.

This time, again you do not need to perform the human task. You will find output similar to the output below in the log file (previous lines repeated here):

[7/15/07 18:52:09:547 CEST] 00000081 SystemOut   O ApprovalProcess V1: result is false
[7/15/07 18:52:11:625 CEST] 00000081 SystemOut   O Mailing rejection to customer 00715
...
[7/15/07 19:42:33:703 CEST] 00000075 SystemOut   O ApprovalProcess V2: result is true
[7/15/07 19:42:34:953 CEST] 00000075 SystemOut   O Handling warranty claim for customer 00717
...
[7/15/07 19:56:02:859 CEST] 00000072 SystemOut   O ApprovalProcess V1: result is true
[7/15/07 19:56:04:766 CEST] 00000072 SystemOut   O Handling warranty claim for customer 00716
...
[7/15/07 19:59:44:578 CEST] 00000075 SystemOut   O ApprovalProcess V3: result is false
[7/15/07 19:59:44:703 CEST] 00000072 SystemOut   O Mailing rejection to customer 00718

Troubleshooting

Under certain circumstances, you may see error messages in the log file. In this section, some error symptoms are listed, together with possible root causes that may lead to those error symptoms.

Symptom:

You see this error message in the log file:

java.rmi.AccessException: CORBA NO_PERMISSION
org.omg.CORBA.NO_PERMISSION: The WSCredential does not contain a forwardable token.
Please enable Identity Assertion for this scenario.

Possible reason:

Symptom:

You see this error message in the log file:

CWWBE0114E: The partner role of partner link 'ApprovalProcessIF' used in activity 'ApprovalStep' is not initialized.

Possible reason:

Symptom:

You see an error message similar to this one in the log file:

CWWBA0008E: Process template 'ApporvalPorcess. null' is not found.

Possible reasons:

Symptom:

You see this error message in the log file:

com.ibm.websphere.sca.ServiceRuntimeException: Target cannot be resolved: ApprovalProcess

Possible reason: