wso2 ESB : Split / Gather Pattern - Single Response

前端 未结 2 1919
不思量自难忘°
不思量自难忘° 2021-01-03 00:45

This is not a question but rather an answer. I am quite new to wso2 ESB and wanted to make a test run implementing the sp

相关标签:
2条回答
  • 2021-01-03 01:21

    What you need to do is, mention any id in the iterator mediator (refer iterator mediator docs) and refer the same id in aggregator mediator as the correlation id. That's it. –

    0 讨论(0)
  • 2021-01-03 01:28

    The aggregate mediator supports an attribute enclosingElementProperty which surrounds the responses with a single parent element. This simplifies your enrich trick:

    <property name="ROOT" scope="default">
        <root:rootelement xmlns:root="www.wso2esb.com"/>
    </property>
    <aggregate>
        <completeCondition>
            <messageCount min="-1" max="-1"/>
        </completeCondition>
        <onComplete expression="//dummy" enclosingElementProperty="ROOT">
        </onComplete>
    </aggregate>
    
    0 讨论(0)
提交回复
热议问题