Skip to Content

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.

Untitled.png

PI Steps:

In PI For Sending Purchase order Details I created a simple data Type for Input and output show below.

Input Data Type:

Capture.JPG

Output Data Type:

Capture.JPG

And corresponding Message Types for the same.

Then 4 Service Interfaces:

Service Interface 1(Outbound):

To Get data in to PI

Untitled.png

Service Interface 2(Inbound):

To Trigger NWBPM

Untitled.png

Service Interface 3(Outbound):

To send data back to PI From NWBPM

Untitled.png

Service Interface 4(Inbound):

To write the Output File with Status

Untitled.png

Then Corresponding ICOs for the Same with Soap Channels.(one for sending data to NWBPM and other for the reverse)

NWBPM Steps:

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.

Capture.JPG

Start Step:

NWBPM will be triggered by the start Step,Trigger will be NWBPM Inobund interface.

Untitled.png

Untitled.png

Then in the Output mapping PO Number and Quanitity will be mapped to the corresponding Artifacts

Capture.JPG

Now the data is the corresponding artifacts of NWBPM.Next step will be Human Activity

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

Capture.JPG

Now select the Project Select Process Modelling,Then select your process right click on it and select ‘APPLY TEMPLATE”

Untitled.png

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.

Capture.JPG

Next step is to select the UI Technology which will be “Webdynpro” and create a new development component to deploy the webdynpro UI

Capture.JPG

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

Capture.JPG

And in the Output mapping pass the Status obtained from the Human activity to the NWBPM artifact.

Capture.JPG

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,

Capture.JPG

Send Step:

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

Capture.JPG

Select the Service Reference and change the properties to XI System and give the corresponding Business system Details

Untitled.png

In the Input mapping ,map the values from NWBPM artifact to the Service interface values.

Capture.JPG

Deployment:

Then finally select the Project,Right click->Development Component->Deploy the NWBPM and the Webdynpro projects.

Untitled.png

Testing:

I used SOAP UI to test the scenario with values as shown below.

Untitled.png

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.

http://PI-URL:PORT/irj/portal

Tasks assinged for the user will be displayed.

Capture.JPG

User can enter the status accordingly.

Capture.JPG

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.

Capture.JPG

and For case “Rejected”

Untitled.png

Capture.JPG

Capture.JPG

Thus human and automated activities of NWBPM are used together.This can be enhanced as per the business requirment.

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply