나의 사용 사례는 smne 데이터로 입력을 풍부하게하고 아웃 바운드 엔드 포인트로 보내야합니다.병렬 발신 전화 걸기 방법
풍부한 데이터는 두 개의 웹 서비스를 호출 한 다음 응답에서 데이터를 추출하여 얻습니다. 이 추출 된 데이터는 입력 XML로 확장되어 아웃 바운드 엔드 포인트로 보내집니다.
내가해야하는 두 가지 웹 서비스 호출은 다른 것에 대한 종속성이 없으므로 병렬이어야합니다. 이렇게하면 처리 시간을 절약 할 수 있습니다.
이 병렬 처리를 Mule의 플로우에서 어떻게 구현할 수 있는지 제안 해주십시오.
참고 : 모든 흐름 제어를 사용해 보았지만 웹 서비스 (하위 흐름)를 순차적으로 호출하는 것 같습니다.
내 추상 흐름은 다음과 같습니다.
<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>
포크와 조인간에 WS 호출을 사용하여 포크 조인 패턴을 사용하지 않겠습니까? –
David Dossot에게 감사드립니다. :) – user1760178
제 경우에는 모든 흐름 제어를 사용하여 두 개의 하위 흐름으로 입력을 보내고 있습니다. 웹 서비스 호출에 포크 조인 패턴을 어떻게 사용할 수 있는지 잘 모르겠습니다. 또한 나는 "아웃 바운드 엔드 포인트"라고 직접 부르지 않습니다. 서브 플로우에 대한 호출을 만들어야하는데, 여기에서 웹 서비스에 대한 호출이 이루어지기 전에 입력 메시지에 대한 일부 처리가 발생합니다. 제가 여기에 뭔가 빠졌는지 알려주세요. – user1760178