to make until successful synchronous in mule 3.4

坚强是说给别人听的谎言 提交于 2019-12-11 20:36:40

问题


Below is a part of my mule flow

<until-successful objectStore-ref="ObjStreuntil" maxRetries="60"              secondsBetweenRetries="60" doc:name="Until Successful" failureExpression="#   [payload.state == 'Queued' || payload.state == 'InProgress']">
<processor-chain doc:name="Processor Chain">
<sfdc:batch-info config-ref="Salesforce" doc:name="Salesforce">
   <sfdc:batch-info ref="#[payload]"/>
</sfdc:batch-info>
<logger message="#[payload]" level="INFO" doc:name="Logger"/>
</processor-chain>
</until-successful>

I would like my flow to wait until my batch is completed and then proceed to the next processor. I believed using processing chain will get the outcome.

But the flow doesn't work. I'm aware that until sucessfull is made synchronos in 3.5 is there any method to acheive this on 3.4.0

Any suggestions would be of great help

Thank you in advance


回答1:


To achieve your goal in 3.4, add a flow-ref or vm:outbound-endpoint after the batch call so the subsequent logic can be executed when the batch is done.

This is preferable to blocking the main flow thread anyways, since batch processing can take a while.

Note that you may need to add a filter after sfdc:batch-info if you want to process the subsequent logic only for certain return codes.



来源:https://stackoverflow.com/questions/25124152/to-make-until-successful-synchronous-in-mule-3-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!