Skip to the content.

fwk.setIteration

This action defines an interation that can be used in any next action. It represents the definition of where to iterate over.

Use cases

Parameters

1: name

name: "name of the iteration"

2: type

type: "values" / "for" / "condition"

3: values

values: "values to iterate over"

4: from

from: "value to start the iteration"

5: to

to: "value to end the iteration"

6: step

step: "value to use for incrementing or decrementing the iteration"

7: condition

list: "identifier for the list name that is used to iterate on"

8: list

list: "identifier for the list name that is used to iterate on"

9: interrupt

interrupt: "Y" / "N"

Examples

Define an iteration using a list of values

  - number: 1
    type: "fwk.setIteration"
    name: "example1"
    description: "Define an iteration using a list of values"
    component: ""
    condition: ""
    iteration: ""
    errorExpected: "N"
    errorStop: "N"
    parameters:
    - name: "name"
      value : "iteration1"
    - name: "type"
      value: "values"
    - name: "values"
      value: "value1,value2,value3"

Define an iteration using a for loop

  - number: 2
    type: "fwk.outputMessage"
    name: "example2"
    description: "Define an iteration using a for loop"
    component: ""
    condition: ""
    iteration: ""
    errorExpected: "N"
    errorStop: "N"
    parameters:
    - name: "name"
      value : "iteration2"
    - name: "type"
      value: "for"
    - name: "from"
      value: "1"
	- name: "to"
      value: "5"
	- name: "step"
      value: "1"

Define an iteration using a list

  - number: 1
    type: "fwk.setIteration"
    name: "example3"
    description: "Define an iteration using a list"
    component: ""
    condition: ""
    iteration: ""
    errorExpected: "N"
    errorStop: "N"
    parameters:
    - name: "name"
      value : "iteration1"
    - name: "type"
      value: "list"
    - name: "list"
      value: "list1"

Interrupt the iteration upon error

  - number: 1
    type: "fwk.outputMessage"
    name: "example4"
    description: "Define an iteration using a for loop"
    component: ""
    condition: ""
    iteration: ""
    errorExpected: "N"
    errorStop: "N"
    parameters:
    - name: "name"
      value : "iteration2"
    - name: "type"
      value: "for"
    - name: "from"
      value: "1"
	- name: "to"
      value: "5"
	- name: "step"
      value: "1"
	- name: "interrupt"
      value: "Y"