我在BPEL 2.0中合并两个变量(保持和对象列表)的响应时遇到问题
我的代码段如下:
<assign name="AssignJobList">
<extensionAssignOperation>
<bpelx:copyList>
<bpelx:from>$InvokeJobDetailsPSGetUpdatedJobObjectsResponse.JobProxyResponse/sfabmabo:Job</bpelx:from>
<bpelx:to>$MergeJobListResponseMessage.JobProxyResponse/sfabmabo:Job</bpelx:to>
</bpelx:copyList>
<bpelx:insertAfter>
<bpelx:from>$InvokeJobDetailsPSGetEffectiveJobObjectsResponse.JobProxyResponse/sfabmabo:Job</bpelx:from>
<bpelx:to>$MergeJobListResponseMessage.JobProxyResponse/sfabmabo:Job[last()] </bpelx:to>
</bpelx:insertAfter>
</extensionAssignOperation>
</assign>
&#13;
对于CopyList操作,它正在将目标更新为变量,但是对于操作后的插入,它既没有合并也没有抛出错误。
请你帮我一下。
由于
答案 0 :(得分:0)
可以通过为每个bpelx操作添加标记来解决上述问题,如下所示:
<assign name="AssignUpdatedandMergedJobList">
<extensionAssignOperation>
<bpelx:copyList>
<bpelx:from>$InvokeJobDetailsPSGetUpdatedJobObjectsResponse.JobProxyResponse/sfabmabo:Job</bpelx:from>
<bpelx:to>$MergeJobListResponseMessage.JobProxyResponse/sfabmabo:Job</bpelx:to>
</bpelx:copyList>
</extensionAssignOperation>
<extensionAssignOperation>
<bpelx:insertAfter>
<bpelx:from>$InvokeJobDetailsPSGetEffectiveJobObjectsResponse.JobProxyResponse/sfabmabo:Job</bpelx:from>
<bpelx:to>$MergeJobListResponseMessage.JobProxyResponse/sfabmabo:Job[last()]</bpelx:to>
</bpelx:insertAfter>
</extensionAssignOperation>
</assign>
&#13;
此致