Do While (Deprecated) - Data360_Analyze - Latest

Data360 Analyze Server Help

Product type
Software
Portfolio
Verify
Product family
Data360
Product
Data360 Analyze
Version
Latest
ft:locale
en-US
Product name
Data360 Analyze
ft:title
Data360 Analyze Server Help
Copyright
2025
First publish date
2016
ft:lastEdition
2025-08-05
ft:lastPublication
2025-08-05T06:05:01.564000
Table 1. Changes in this topic
Change type Description
Deprecated in version 3.18 This node has been deprecated and will not be supported in a future release. As an alternative, the Do While node can be used to provide similar functionality.

This deprecated node executes a user-defined Script and passes the result to an optional execution path, looping while the specified condition is met.

To use this node, start by connecting the input data to the initialInput input pin, which provides the initial input into the Do While loop.

Write the Script to execute during each loop iteration in the WhileScript property. See below for an example Script.

Connect the outputToLoop and inputFromLoop pins to a chain of nodes to execute during each loop iteration. These pins may be connected directly to each other if all of the data manipulation occurs in the Script.

Finally, connect the finalOutput pin to the rest of the data flow.

Example Script: loops until the count field is greater than or equal to 20 on all rows


# Set condition to true on the first pass
if (firstExec) then condition = true

#Increment count by 1
emit 'count' + 1 as count
			
# check if the condition is matched
condition = condition and (20 > 'count')
			
# After all records are processed, check if the condition is still true.
if (lastInGroup and condition) then {	# If the condition is still true, set returnCode 101 to	
	# reschedule the node and continue iteration.
	setSuccessReturnCode(101)
}

Properties

WhileScript

Specify the Script to be processed each pass through the loop.

In order for the loop to continue, the function setSuccessReturnCode must be called with a status code of 101, otherwise the data flow is free to begin processing the next node. A value is required for this property.

AccumulateLoopOutput

Optionally specify whether to include the output from each pass through the loop in the final output.

The default value is False.

For example, assume the following:1. The loop increments the input field 'count' by one each pass through the loop.2. The loop will terminate once 'count' equals five.3. The input pin has a single row like so:


|count|
|  1  |

If AccumulateLoopOutput is false, the final value in the 'count' column is 5 and there is only one row:


|count|
|  5  | 

If AccumulateLoopOutput is true, a row is added for each pass through the loop:


|count|
|  1  |
|  2  |
|  3  |
|  4  |
|  5  |

Inputs and outputs

Inputs: initialInput, inputFromLoop.

Outputs: finalOutput, outputToLoop.