下面是我的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-ref或vm: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中成功同步
发布评论