Integrating Human And Automated Activity in NWBPM
Dear SCN Users,
This Document is about integrating Human and automated ativities of NWBPM.It can be used in business case where user needs to view,update or approve some events or orders etc.
Scenario is PO Number will be sent to PI which will be sent to NWBPM automated activity which in turn triggers the Human activity.
User who is assigned to the Human activity can type the status and sent it back to NWBPM which in turn writes a file in the directory.
Below is the flow Of the Scenario.
In PI For Sending Purchase order Details I created a simple data Type for Input and output show below.
Input Data Type:
Output Data Type:
And corresponding Message Types for the same.
Then 4 Service Interfaces:
Service Interface 1(Outbound):
To Get data in to PI
Service Interface 2(Inbound):
To Trigger NWBPM
Service Interface 3(Outbound):
To send data back to PI From NWBPM
Service Interface 4(Inbound):
To write the Output File with Status
Then Corresponding ICOs for the Same with Soap Channels.(one for sending data to NWBPM and other for the reverse)
Below is the NWBPM pattern to be used
Two Lanes one for automated Activities and one more Human Activities.
And there Data Objects(Artifacts) are modelled.
NWBPM will be triggered by the start Step,Trigger will be NWBPM Inobund interface.
Then in the Output mapping PO Number and Quanitity will be mapped to the corresponding Artifacts
Now the data is the corresponding artifacts of NWBPM.Next step will be Human Activity
Select the Human Activity and name it according to the requirement.Here PO will be displayed and Status wil be updated by user.
Intially Select None as task in the Task Tab
Now select the Project Select Process Modelling,Then select your process right click on it and select ‘APPLY TEMPLATE”
Then Select UI TASK GENERATION
Select the activity and attributes.Here I am going to display PO Number and Quantity and User can enter the Status.So selecting the three attributes PONumber,Quantity and Status.
Next step is to select the UI Technology which will be “Webdynpro” and create a new development component to deploy the webdynpro UI
Click Finish UI Template will be created.
Now in the Input mapping of the Human Activity pass the Values obtained from Start step to the Human activity inputs
And in the Output mapping pass the Status obtained from the Human activity to the NWBPM artifact.
Also create an User with NWBPM read,write access who can view and edit this task
And assign this user as Potential owner for the Human activity or the Human Lane,
Final Step in NWBPM is Send step which is an automated activity.Status and PO details will be sent back to PI using this activity.
Select the NWBPM Outbound Interface imported from ESR
Select the Service Reference and change the properties to XI System and give the corresponding Business system Details
In the Input mapping ,map the values from NWBPM artifact to the Service interface values.
Then finally select the Project,Right click->Development Component->Deploy the NWBPM and the Webdynpro projects.
I used SOAP UI to test the scenario with values as shown below.
once the message is triggered.PO Details can be viewed by the user who has been assinged.Log in to the portal using the below link.
Tasks assinged for the user will be displayed.
User can enter the status accordingly.
The above UI screen can be changed using Web dynpro JAVA
Once user submits XML message will be written as file in the Output directory configured.
and For case “Rejected”
Thus human and automated activities of NWBPM are used together.This can be enhanced as per the business requirment.