Repeat Step Properties

The Repeat step is a loop that runs more than once. There are multiple types of repeat steps used for different actions. Repeat steps do not automatically move the pointer in the file. In order to avoid infinite loops, a Goto step must be present within the loop itself.

By default, if an Extract step is added within a Repeat step, its extraction is made in a Details Table.

Description

This subsection is collapsed by default in the interface, to allow more screen space be given to other important parts.

Name: The name of the step. This name will be displayed on top of the step's icon in the Steps pane.

Comments: The text entered here gives more details on the step and will be displayed in the tooltip appearing when hovering over the step in the Steps pane.

Repeat Definition

  • Repeat type:
    • While statement is true: The loop executes while the statement below is true. The statement is evaluated after the loop so the loop will always run at least once.
    • Until statement is true: The loop executes until the statement below is true. The statement is evaluated before the loop so the loop may not run at all.
    • Until no more elements (for Text, CSV, Database and PDF files only): The loop executes as long as there are elements left as selected below.
    • For Each (for XML files only): The loop executes for all nodes on a specified level.

    • When using an XML For Each loop, it is not necessary to skip to the repeating node or to have a Gotostep to jump to each sibling, as this loop takes care of it automatically.
  • Maximum iterations on each line: Defines the maximum number of iterations occurring at the same position. This expression is evaluated once when entering the loop. The value returned by the expression must be an integer higher than 0.
    • Use JavaScript Editor: Click to display the Edit Script dialog.


    • Running a JavaScript expression offers many possibilities, for example:
      • Setting Properties and Record Field values using advanced expressions
      • Do complex mathematical operations and calculations
      • More features to come in future versions. For more information, see JavaScript in DataMapper.

Rule Tree

The Rule tree subsection displays the full combination rules (defined below under Condition) as a tree, which gives an overview of how the conditions work together as well as the result for each of these conditions for the current record or iteration.

Condition

First, the Condition List displays the conditions in list form, instead of the tree form above. Three buttons are available next to the list:

  • Add condition: Click to create a new condition in the list. This will always branch the current condition as an "AND" operator.
  • Delete condition: Delete the currently selected condition.
  • To rename a Condition, double click on its name from the Rule tree subsection .

Conditions are made by comparison of two operands using a specific Operator.

Both the Left and Right operands have the same properties.
 
  • Last Topic Update: 24/01/2017 09:32
  • Last Published: 7/6/2017 : 9:48 AM