使直到在synchronous子3.4中成功同步 [英] to make until successful synchronous in mule 3.4

查看:70
本文介绍了使直到在synchronous子3.4中成功同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我的m子流的一部分

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.

但是流程不起作用.我知道,直到在3.5中成功建立同步,在3.4.0上才有实现此目的的方法

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

提前谢谢

推荐答案

要实现3.4中的目标,请在批处理调用之后添加flow-refvm:outbound-endpoint,以便在完成批处理后可以执行后续逻辑.

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.

请注意,如果您只想为某些返回码处理后续逻辑,则可能需要在sfdc:batch-info之后添加过滤器.

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.

这篇关于使直到在synchronous子3.4中成功同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆