This sample can be run by using the Business Choreographer Explorer. Before you run this sample, please check the following:
If you already know how to start a BPC Explorer session, you may proceed to the section Start the order 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: yourhost
has to be replaced with your server's internet address, yourport
has to be replaced 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:
To start the order process, follow these steps:
sellerA
. Be sure to enter the user ID in mixed case exactly as shown. The Process Templates view is displayed:
The Process Input Message view opens:
After some elapsed time, you will find output similar to the output below in the log file.
[1/12/09 17:37:05:932 CET] 0000037b SystemOut O Order from Franz Mustermann received
[1/12/09 17:37:05:932 CET] 0000037b SystemOut O ItemNo 12345 for the prize of 9.99 Euros received
In this section we try an operation (e.g. start a sensitive process) without being authorized to do that operation. Note that user sellerA is not allowed to delete a customer since user sellerA is not a member of the group approvers, which is specified as the set of potential starters for this process.
To start the customer deletion process without being authorized, follow these steps:
sellerA
(case sensitive).The Process Templates view is displayed:
An exception message is displayed.
In addition, this error message is added to the log file.
To start the customer deletion process, follow these steps:
approverA
. Be sure to enter the user ID in mixed case exactly as shown.The Process Templates view is displayed:
The Process Input Message View opens:
After some elapsed time, you will find output similar to the output below in the log file.
[1/12/09 17:57:39:604 CET] 0000037b SystemOut O The Customer Franz Mustermann was permanently deleted
In this section we try to perform administrative operations on a process instance (e.g. terminate or delete) without being authorized to do so.
Note that for this process template, user approverA has more privileges than sellerA but still is not allowed to do certain restricted administrative operations, since approverA is not a member of the group supervisors, which is specified as the set of administrators for this process template.
To see the list of administrators for this process, follow these steps:
approverA
(case sensitive).The view Process Instances Started By Me is displayed:
The Process Instance view opens. Note that you are logged in as approverA [* 1 *], but the list of administrators [*2*] does not contain that userid:
Since you are not logged in as an administrator, an exception message like this is displayed:
In addition, in the log file you will find output similar to the output below:
[1/12/09 18:11:24:713 CET] 000002a5 BpelEngine I CWWBE0133E: The user 'approverA' is not allowed to perform the requested action 'delete()' on process 'deleteCustomerProcess'.
In this section we repeat the administrative operations, now with sufficient privileges. For this, we log in as supervisorA, who is a member of the group supervisors, which is specified as the set of administrators for this process.
Follow these steps:
supervisorA
. Be sure to enter the user ID in mixed case exactly as shown.The view Process Instances Administered By Me is displayed where you should find the process instance either in Running or in Finished state: