[英]Unable to consolidate data from Salesforce using salesforce connector and aggregate in wso2
我正在尝试使用迭代器从Salesforce提取数据,最后使用聚合器合并数据。
<property name="Result" scope="default">
<Result xmlns=""/>
</property>
<iterate xmlns:sfdc="http://wso2.org/salesforce/adaptor" continueParent="true" expression="//sfdc:iterator" id="SFDCData" sequential="true">
<target>
<sequence>
<salesforce.queryMore configKey="MySFConfig">
<batchSize>200</batchSize>
</salesforce.queryMore>
<payloadFactory media-type="xml">
<format>
<result xmlns="">$1
</result>
</format>
<args>
<arg evaluator="xml" expression="$body/*"/>
</args>
</payloadFactory>
</sequence>
</target>
</iterate>
<aggregate>
<correlateOn expression="SFDCData"/>
<completeCondition>
<messageCount max="-1" min="-1"/>
</completeCondition>
<onComplete enclosingElementProperty="Result" expression="//result">
<respond/>
</onComplete>
</aggregate>
当我尝试使用邮递员调用服务时,它显示超时错误。 “无法得到任何回应”。
我需要做的只是整合来自Iterator的数据,然后将其投影回最终用户。 如果对此有任何线索或想法,请发表评论。
您可以提供样品申请XML吗? 从您的代码中,我可以分析出XML中元素“ sfdc:iterator”的多次出现,并且您正在传递迭代器,这意味着如果有5个元素,则该消息将被拆分为5个,然后发送给salesforce。但是我可以知道使用有效负载介体的原因吗? 是否可以删除有效负载中介程序并执行请求。 基于此,您已按顺序进行了此操作,因此最好记录日志,以便您可以分析故障发生的位置
最终如何完成?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.