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 v7.0.
  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

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 Currently Valid.
  3. The Currently Valid 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 check or uncheck the checkbox and press Complete.

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

[1/12/09 10:55:40:869 CET] 00000052 SystemOut   O ApprovalProcess V1: result is false
[1/12/09 10:55:43:963 CET] 00000052 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 Currently Valid view and click Refresh.
  3. The 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):

[1/12/09 10:55:40:869 CET] 00000052 SystemOut   O ApprovalProcess V1: result is false
[1/12/09 10:55:43:963 CET] 00000052 SystemOut   O Mailing rejection to customer 00715
...
[1/12/09 11:10:45:385 CET] 000000df SystemOut   O ApprovalProcess V2: result is false
[1/12/09 11:10:46:291 CET] 000000df SystemOut   O Mailing rejection to 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):

[1/12/09 10:55:40:869 CET] 00000052 SystemOut   O ApprovalProcess V1: result is false
[1/12/09 10:55:43:963 CET] 00000052 SystemOut   O Mailing rejection to customer 00715
...
[1/12/09 11:10:45:385 CET] 000000df SystemOut   O ApprovalProcess V2: result is false
[1/12/09 11:10:46:291 CET] 000000df SystemOut   O Mailing rejection to customer 00717
...
[1/12/09 11:54:44:869 CET] 000000df SystemOut   O ApprovalProcess V1: result is true
[1/12/09 11:54:45:822 CET] 000000df 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 Currently Valid Process Templates view and click Refresh.
  3. The Currently Valid 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):

[1/12/09 10:55:40:869 CET] 00000052 SystemOut   O ApprovalProcess V1: result is false
[1/12/09 10:55:43:963 CET] 00000052 SystemOut   O Mailing rejection to customer 00715
...
[1/12/09 11:10:45:385 CET] 000000df SystemOut   O ApprovalProcess V2: result is false
[1/12/09 11:10:46:291 CET] 000000df SystemOut   O Mailing rejection to customer 00717
...
[1/12/09 11:54:44:869 CET] 000000df SystemOut   O ApprovalProcess V1: result is true
[1/12/09 11:54:45:822 CET] 000000df SystemOut   O Handling warranty claim for customer 00716
...
[1/12/09 12:08:24:838 CET] 00000051 SystemOut   O ApprovalProcess V3: result is true
[1/12/09 12:08:25:104 CET] 000000df SystemOut   O Handling warranty claim for 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: