[英]Custom aggregation in Mule ESB
I have the following use case in Mule ESB - 我在Mule ESB中有以下用例-
How do i go about doing this using Mule ESB? 我该如何使用Mule ESB做到这一点?
To get you started, here are some relevant user guide pages: 为了帮助您入门,以下是一些相关的用户指南页面:
Conditional routing: http://www.mulesoft.org/documentation/display/MULE3USER/Routing+Message+Processors#RoutingMessageProcessors-Choice 条件路由: http : //www.mulesoft.org/documentation/display/MULE3USER/Routing+Message+Processors#RoutingMessageProcessors-Choice
a. 一种。 Consuming remote web services: http://www.mulesoft.org/documentation/display/MULE3USER/Consuming+Web+Services+with+CXF
消费远程Web服务: http : //www.mulesoft.org/documentation/display/MULE3USER/Consuming+Web+Services+with+CXF
b. 湾 Custom aggregation: http://www.mulesoft.org/documentation/display/MULE3USER/Routing+Message+Processors#RoutingMessageProcessors-CustomAggregator or alternatively perform several message enrichment with: http://www.mulesoft.org/documentation/display/MULE3USER/Message+Enricher
自定义聚合: http : //www.mulesoft.org/documentation/display/MULE3USER/Routing+Message+Processors#RoutingMessageProcessors-CustomAggregator或使用以下方法执行几种消息充实: http : //www.mulesoft.org/documentation/display/ MULE3USER /消息+富集
well I suggest to take a look about scatter gather component, it would be nice for what you need. 好吧,我建议您看一下散点收集组件,这将非常适合您的需求。
you could read about this in the folowing link: https://docs.mulesoft.com/mule-user-guide/v/3.6/scatter-gather 您可以在以下链接中阅读有关此内容的信息: https ://docs.mulesoft.com/mule-user-guide/v/3.6/scatter-gather
The main idea is to do something like this: 主要思想是做这样的事情:
<scatter-gather doc:name="Scatter-Gather">
<processor-chain>
<flow-ref name="getUnitedFlightsFlow" doc:name="getUnitedFlightsFlow"/>
<filter ref="FilterNotArrayList" doc:name="Filter not an ArrayList"/>
</processor-chain>
<processor-chain>
<flow-ref name="getDeltaFlightsFlow" doc:name="getDeltaFlightsFlow"/>
<filter ref="FilterNotArrayList" doc:name="Filter not an ArrayList"/>
</processor-chain>
<processor-chain>
<flow-ref name="getAmericanFlightsFlow" doc:name="getAmericanFlightsFlow"/>
<filter ref="FilterNotArrayList" doc:name="Filter not an ArrayList"/>
</processor-chain>
</scatter-gather>
in this example I use the component to take a choice and call a subflow to execute one particular dutty for one of each. 在此示例中,我使用该组件进行选择,并调用一个子流为每个组件执行一个特定的dutty。
I hope this help you. 希望对您有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.