This sample can be run using the Business Choreographer Explorer. In case you experience problems, please check the troubleshooting section below.
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:

To start the BPC Explorer on WebSphere Process Server, follow these steps:
http://yourhost:yourport/bpc.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:

The BPC Explorer opens:

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:
The My Process Templates view is displayed:

Note that for the template name Approval Process, the attribute Long Running shows the value yes.
The Process Input Message view opens:

00715.You should see a task in Ready state:

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.
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:
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.
00717.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
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:
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.
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:
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.
00718.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
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.
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.
You see this error message in the log file:
CWWBE0114E: The partner role of partner link 'ApprovalProcessIF' used in activity 'ApprovalStep' is not initialized.
You see an error message similar to this one in the log file:
CWWBA0008E: Process template 'ApporvalPorcess. null' is not found.
You see this error message in the log file:
com.ibm.websphere.sca.ServiceRuntimeException: Target cannot be resolved: ApprovalProcess