doc-exports/docs/dataartsstudio/umn/dataartsstudio_01_0534.html
Xiong, Chen Xiao f3ee29a3dd DataArts UMN 20230329 version
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>
2023-05-11 17:09:25 +00:00

4.1 KiB

Loop Embedded Objects

You can use Loop embedded objects to obtain data from the For Each dataset.

Property

Table 1 Property description

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]}