简体   繁体   English

WSO2 BPS foreach问题

[英]WSO2 BPS foreach issue

I am trying to do a forEach , and inside forEach use the counters in a doXSLTransform to derive the source. 我正在尝试做一个forEach ,并且在forEach内部使用doXSLTransform的计数器来doXSLTransform生源。 It is working fine if the forEach finalCounter = 1 otherwise i am getting error for passing multiple elements in the doXSLTransform source. 如果forEach finalCounter = 1则工作正常,否则在doXSLTransform源中传递多个元素时会doXSLTransform I checked the Oasis specs for BPEL and it supports passing the counter using the $ , please advise as I am not sure what is going wrong with WSO2 BPS. 我检查了BPEL的Oasis规格,它支持使用$传递计数器,因此请告知,因为我不确定WSO2 BPS出了什么问题。

Did you try with round function. 您是否尝试过圆形功能。 Usually, it resolves the problem. 通常,它可以解决问题。

$output.payload// [local-name()='activity'][round($counter1)]/ [local-name()='dp'][round($cou‌​nter2)] $ output.payload // [本地名称()='活动'] [回合($ counter1)] / [本地名称()='dp'] [回合($ cou‌nter2)]

我反复尝试了一下,它适用于do变换,但不适用于Assign xpath表达式,这确实很奇怪。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM