Raise Fault During Java Callout

Hi All,

Condition javacallout.< JavaCallout Policy Name>.failed=true is not working when Java Callout policy is failing to raise fault.


Please find the snap of code

<DefaultFaultRule name="XXX">

<Step>

<Name>XXX_RaiseFault_JavaCalloutError</Name>

<Condition>javacallout.< JavaCallout Policy Name>.failed=true

</Condition>

</Step>

</DefaultFaultRule>

Could any one help on this.

Thanks n Regards,

Manish


0 1 249
1 REPLY 1

Not applicable

Hi Manish,
I am not sure about this condition check.
But there is one other way to handle this.
You can set some check variable in java code as below:
MessageContext.setVariable("result", result);

And then in following policies you can use this variable for verification.