forked from docs/doc-exports
Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com> Co-committed-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
4.1 KiB
4.1 KiB
Loop Embedded Objects
You can use Loop embedded objects to obtain data from the For Each dataset.
Property
Property |
Type |
Description |
---|---|---|
dataArray |
String |
Dataset input by the For Each node. It is a two-dimensional array. |
current |
String |
Data row traversed by the For Each node. It is a one-dimensional array. |
offset |
Int |
Current offset of the For Each node, starting from 0. Loop.dataArray[Loop.offset] = Loop.current. |
Example
The EL expression for the Foreach operator to cyclically obtain the first column of the output (a two-dimensional array) of the previous node is as follows:
#{Loop.current[0]}
Parent topic: EL Expression Reference