User Decision step in PI7.1 (Part 2)

By Sachin Dhingra, Sparta Consulting

In the Part I of this series we have gone through the design and configuration part. In this we will cover testing of the scenario.

Testing:

1.        Create the test file under the /tmp directory with the name SO.xml on PI system as we are using NFS. The source file looks like: C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\Payload.JPG

2.        Once the file is created and saved on above mentioned directory. The Execution of scenario will start and the sender communication channel will ping the PI system every (n) sec as defined in sender communication channel.

3.        Go to Transaction SXMB_MONI to monitor the message.

C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\Outbound status -waiting.JPG

The message will be displayed with a  symbol under Outbound status. That indicates that the Message is waiting for User Decision. You can click on “PE” under Outbound to check the workflow for the same. The workflow will appear as below: 

C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\Workflow - process ready.JPG

It is showing the status as ready under the column status. That indicates that the Message is waiting for User Decision and an e-mail is sent to Registered SAP User’s (DhingraSachi) Inbox.

4.        Go to Transaction SBWP.

C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\SBWP - inbox.JPG

Select the Generic decision task in the left pane and it will display the messages waiting for User Decision in the right pane. Double click on the first message.

5.        User Decision step waiting for action

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

The above screen will provide option to make the decision as defined in Integration Process in ESR/IR. Third option Cancel and keep work item in inbox is default option described at end of this blog.

1.       Create:

When the user will choose this option Create, the response (Create) will be sent back to the Integration Process and the process will continue to next step.

After choosing the Create option the message in SXMB_MONI will look like as under:

C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\Inbound -complete.JPG

You can click on “PE” under Inbound to check the workflow for the same. The workflow will appear as below:

C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\Workflow - create step.JPG

The status is changed from ready to completed with result create. As a result of which file is being created in on PI 7.1 system under the “/tmp/Sales_order<datetime stamp>.xml”. The output file is same as that of input file as I am not using any mapping.

2.        Cancel:

When the user will choose this option the response (Cancel) will be sent back to Integration Process and the process will continue to next step i.e. it will raise an ALERT in alert inbox in runtime workbench stating that “Credit limit exceeds the defined limit” and will cancel the process.

After choosing the Cancel option the message in SXMB_MONI will look like as under:

C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\Workflow - cancel step.JPG

You can click on “PE” under Inbound to check the workflow for the same. The workflow will appear as below:

C:\Documents and Settings\sdhingra\My Documents\My Pictures\User Decision\Workflow - process cancel.JPG

The status is changed from ready to completed with result cancel. As a result of which the next step in Integration Process will be followed. In my case an alert will be raised and can be seen in Alert inbox in Runtime workbench. Click on Runtime Workbench on main screen of PI 7.1. Then choose alert inbox and can see the message as under:

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

3.       Cancel and keep work item in inbox:

When the user will choose this option, no response will be sent back to Integration Process and the particular wok item will stay there in user inbox. You can take a decision on a later stage as well.

That’s it we are done with User Decision, Human Interaction BPM Scenario.
 

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