This content has been marked as final. Show 2 replies
After calling the ERP Service using the Invoke Activity, drop an If Activity under the invoke activity (you will find the if activity only if you are using the BPEL 2.0 specification, if you are using the BPEL 1.1 specification, you can use the switch activity)
In that if activity, in the IF case write a condition which checks the invoke activity output variable, select the exact response element of the ERP service in the InvokeOutputVariable in the expression builder, it would be be something similar to this...
$Invoke_ERP_OutputVariable.payload/ns2:ResponseHeader/ns2:code != 'Null'
edit the switch case as required, check for whatever value you are interested, in the above case, i am checking whether it is not equal to Null
then in that case sequence, do the business logic as required....
in the ELSE sequence drop an email activity and notify the required people....
I am pasting you the similar XML source code of the above logic....
<documentation>Not Null Case</documentation>
<condition>$Invoke_ERP_OutputVariable.payload/ns2:ResponseHeader/ns2:code != 'Null'</condition>
Hope this helps,