0

使用 wso2bps-3.5.1

我已经搜索但没有找到任何关于如何在 WSO2 BPS BPEL 中动态填充元素列表的信息。

我的用例是遍历 Invoke 活动给出的列表以生成另一个元素列表。我正在使用 Foreach 活动进行循环,在其中我在循环内创建一个局部范围变量来构建新的列表条目。但是,我不知道如何将此节点插入到新列表中。有没有内置函数?

任何示例将不胜感激。

4

1 回答 1

0

我能够自己解决这个问题:

    xmlns:test="http://ode/bpel/unit-test.wsdl"
    queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
    expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
...
<bpel:assign validate="no" name="Assign">
        <bpel:copy>
            <bpel:from>
                <![CDATA[ode:insert-after($closeAccountResponse.closeAccountResponsePart/xclac:accountConnections, $closeAccountResponse.closeAccountResponsePart/xclac:accountConnections/xcom:accountConnection, $record)]]>
            </bpel:from>
            <bpel:to part="closeAccountResponsePart" variable="closeAccountResponse">
                <bpel:query><![CDATA[xclac:accountConnections]]></bpel:query>
            </bpel:to>
        </bpel:copy>
    </bpel:assign>
于 2016-05-13T16:55:18.760 回答