Question

I'm implementing a mechanism to perform a rollback when certain errors occured during processing.

Errors are handled just before the message will be sent back to the initiator, that means in the very last part of the outsequence.

Now suppose I want to perform a rollback at this point, therefore I should be able to invoke the inSequence of a sequence already available. The problem is I don't manage to reach this IN-part, but it always gets into OUT.

I already tried to set the following property, but to no success:

<property action="set" name="RESPONSE" scope="default" value="false"/>

Can somebody please help me out here please. I guess it can't be that difficult, but it's rather urgent, so I really need to know how to do this.

Thanks in advance!

Was it helpful?

Solution 2

Okay I finally managed to get it working. This easy script did the trick:

<script language="js"><![CDATA[
    mc.setResponse(false);
]]></script>

OTHER TIPS

If you want to invoke a mediation flow which is used inside the In Sequence, you may move that particular section to a separate sequence and then refer it inside the mediation flow. (

A more detailed explanation about your service integration scenario will be helpful in answering with details.

This webinar may help you.

http://wso2.org/library/webinars/2011/01/wso2-esb-answer-enterprise-service-integration

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top