cancel
Showing results for 
Search instead for 
Did you mean: 

Exceptions in BPM

david_ramos2
Explorer
0 Kudos

Hi.

We have an scenario with BPM.

In this workflow we receive the information from RFC and send message to a Web service.

We want to include 2 types of exception in the send step. System Error and Application Error.

Is possible to make it?

Kind Regards

David Ramos

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

for system error - use deadline step and for application error get exception/error message as a reply from the target.

david_ramos2
Explorer
0 Kudos

Hi.

In the send step I have defined two exception: System Error y Fault message and two exception handler,

one for each exception.

I was able to collect the exception System Error in synchronous send step.

If I receive a System error, the flow continues for the exception branch.

But If the send step fail with this error:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Request Message Mapping

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">

<SAP:Category>Application</SAP:Category>

<SAP:Code area="UNKNOWN">APPLICATION_ERROR</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText>application fault</SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="http://xml.apache.org/axis/">hostname</SAP:ApplicationFaultMessage>

<SAP:Stack />

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

The flow doesn´t follow by the exception brank and I receive the next message:

"No exception defined for fault message hostname"