User Decision step in SAP PI 7.1 - Part II

User Decision step in SAP PI 7.1 - Part II

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:



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.



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:



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 (PI system).



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



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:


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



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.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:



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



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:



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.


SAP Developer Network SAP Weblogs: SAP Process Integration (PI)