User Decision step in PI7.1 (Part 1)

By Sachin Dhingra, Sparta Consulting

A lot is being talked about the BPEL4People/Human Interaction capability in SAP Process Integration 7.1. Introducing it here by creating a simple scenario based on the functionality of User Decision step in PI 7.1, which allows the user to take a decision.

Scenario:

We have a file in PI 7.1 system under the directory “/tmp/SO.xml” which is having the general data for sales order. The Integration Process (BPM) in PI 7.1 will receive this file and check for the credit limit in the data. The default credit limit is 50000.

BPM is using User Decision step in which after receiving the file with data having credit limit above 50000, the process with user decision step will be started. The file is picked from the directory and the message would initialize the ccBPM. The message would wait for the user decision and the action can be seen in User’s Inbox.

Assumptions:

1.        The scenario is a file-to-file using BPM.

2.        User has developed interfaces in PI and trying to develop ccBPM with Human Interaction capabilities.

Enterprise Service Builder:

Create the data type and message type. The basic data type is as under:

C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\Date type.JPG

Create the Outbound Asynchronous, Inbound Asynchronous and Abstract Asynchronous Service (Message) Interface.

Create Message Mapping and Operation (Interface) Mapping

Create an Integration Process with the name IP_Salesorder as under: C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\BPM.JPG

The Steps used here are as under:

1.        Receive1 step will receive the message from the sender system.

2.        Container1 step is used to assign the default value to SO_limit container variable.

3.        Switch1 step is used to check the limit of sales order.

4.        Branch1 of Switch1 involves the User Decision1 step.

5.        Otherwise branch of Switch1 step involves Control2 step.

6.        User Decison1 is having two Decision option branches.

7.        Decision option1 step is triggered when the result of User Decision step is CREATE

8.        Decision option2 step is triggered when the result of User Decision step is CANCEL

9.        Properties for each and every step defined above in the Integration Process and variables/parameter used are as under:

Create the container variable as shown below:

Switch to Configurable Parameters by clicking on Container.

C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\Configurable Parameters.JPG

Create the configurable parameters as above. The E-mail will be sent to the Admin (SAP User Name) that we will assign in Integration Directory.

C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\Receiver step.JPG

Receive1

C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\Container_properties.JPG

Container1, and Expression for Container1 is as under:

C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\xPath.JPG 

C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\switch1_prop.JPG

Click here to continue...

 

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image