poison64
poison64

Reputation: 101

How can i correlate responses with request in aggregate mediator?

Is it possible to enrich response in out sequence with values from requests in iterate-aggregate scenario? I need to respond with xml that will have response as well as businessId of source business object. operation scope property seems to be buggy and often results with values 2, 3, 3 or 3, 3, 3 instead of sent 1, 2, 3...

Upvotes: 0

Views: 376

Answers (1)

Jean-Michel
Jean-Michel

Reputation: 5946

You can save values you need in properties inside in sequence and use those properties in the out sequence. You can even save the entire request message in a property inside your in sequence, and use it with xpaths in your out sequence :

save :

<enrich>
    <source type="envelope" clone="true"/>
    <target type="property" property="INPUT_MESSAGE"/>
</enrich>

use it :

get-property('INPUT_MESSAGE')/yourNode/text()

Upvotes: 1

Related Questions