私のユース ケースでは、入力を smne データで強化し、アウトバウンド エンドポイントに送信する必要があります。
強化のためのデータは、2 つの Web サービスを呼び出して取得し、応答からデータを抽出します。この抽出されたデータは、入力 XML に追加され、アウトバウンド エンドポイントに送信されます。
私が行う必要がある 2 つの Web サービス呼び出しは、互いに依存していないため、並列である必要があります。このようにして、処理時間を節約できました。
Mule のフローでこの並列処理を実現する方法を提案してください。
注: すべてのフロー制御を使用してみましたが、Web サービス (サブフロー) を順番に呼び出しているようです。
以下は私の抽象的な流れです。
<flow name="mainFlow">
<inbound-endpoint> .....
<some validation>
<setting some flow variables>
<!-- Now make calls to the sub-flows which has some processing of the input and make some web-service calls -->
<all>
<flow-ref name="myFlow1" />
<flow-ref name="myFlow2" />
<flow-ref name="myFlow3" />
</all>
<enrich the input with the data obtained from the output of the above three flows>
<outbound-endpoint>
</flow>
<flow name="myFlow1">
<some transformer to transform the payload provided >
< the tran sformed payload is passed as input to the web-service call>
<http:outbound-endpoint ...>
<transform the reply from the web-service call>
</flow>
<flow name="myFlow2">
<some transformer to transform the payload provided >
< the tran sformed payload is passed as input to the web-service call>
<http:outbound-endpoint ...>
<transform the reply from the web-service call>
</flow>
<flow name="myFlow3">
<some transformer to transform the payload provided to it>
< the tran sformed payload is passed as input to the web-service call>
<http:outbound-endpoint ...>
<transform the reply from the web-service call>
</flow>