使直到在synchronous子3.4中成功同步

编程入门 行业动态 更新时间:2024-10-27 19:19:12
本文介绍了使直到在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-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中成功同步

本文发布于:2023-11-23 11:06:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1621227.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:synchronous

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!