Testing the sample is identical with running the sample
on the Playback Server. In the first part we describe how this is done
using the BPEL Business Process Choreographer and WLE Portal. In the
second part we are going to use Business Space with the federated
client.
Pre-requisite to run the sample is that
you either have created the Procurement_Sample_Test process application
yourself as described in the section “Build it yourself”. Otherwise
import and activate the Procurement_Sample_Test1_FINAL.twx file. For the
later one open the IBM Business Process Manager
Process Center console using your Internet Browser: http://localhost:9080/ProcessCenter/login.jsp.
Enter as User Name = tw_admin and Password = tw_admin. Press Import
Process App and navigate to the above process application snapshot. The
process application is automatically deployed to the Process Center
Server when the import completed and succeeded.
1. Execute the Process Application in BPEL Business Process Choreographer and WLE Portal
a. Launch the BPEL Process Choreographer Explorer
Open your internet browser and enter http://localhost:9080/bpc
or right-click on your server and press Launch > BPEL
Process Choreographer Explorer.
Logon with userid = tw_admin and password = tw_admin.
The BPEL Business Process Chreographer Explorer opens.
b. Start process instance
In the navigation tree select Process Templates >
Currently Valid.
Flag the process template ReplenishmentBPEL and press Start
Instance.
c. Enter values for the Process Input Message
Process Name = Replenish_Test_222
orderID = OID_222
partNumber = PN_222
Quantity, orderAmount, etc. don’t have to be provided.
d. Access Process State View
Follow the status of the process instance accessing the instance via Process
Instances > Started by me. Flag the process instance with
the Process Name Replenish_Test_222 entered above. Press View
Process State.
e. Perform WLE task using Portal
Start your internet browser and login to the WLE Portal via http://localhost:9080/portal.
Enter the User Name = tw_admin and Password = tw_admin.
2. Execute the Process Application using the federated client in Business Space
This time we execute the replenishment process using Business Space as enduser interface. As we are dealing with tasks managed by WPS / HTM as well as WLE we use the Business Space configuration of the federated client.
a. Create your own space
Open the Business Space application and create a new space for the
procurement sample application.
Open your internet browser and enter the url for the Business Space http://localhost:9080/BusinessSpace
or https://localhost:9443/mum/enabler.
You might be prompted to accept a Security Certificate. If so, confirm
this.
b. Create the Procurement Sample Space
Select Manage Spaces.
c. Configure the Task Definitions list
Press Go to Spaces.
d. Start process instance
In the Task Definitions list select the Replenish_InvocationTask that
belongs to the Procuement_Sample_Test1_FINAL. Under Actions click
Create an instance from this task definition.
The Task Information window is refreshed and starts
any empty Input form for the Replenish_InvokationTask. The Input form
opens. Enter
orderID = OID_333
partNumber = PN_333
Quantity, orderAmount, etc. don’t have to be provided.
3. Work on Tasks
Perform the human task managed by the WLE engine accessible via the federated Business Space Client.
a. Select the Work on tasks page tab
The Tasks widget opens with no tasks found
as Work on my tasks refers to claimed tasks only.
Select All > Assess and work on my tasks to see
the available (status = ready) tasks.
b. Response to Invocation Task
Return to Task Information widget. Open
the Replenish_InvocationTask and see the output1
received.