Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.16 KB

constant_iterable_output_task.md

File metadata and controls

46 lines (34 loc) · 1.16 KB

ConstantIterableOutputTask

Same as ConstantOutputTask, but the output option must be an array: the task iterates over it and outputs each value one by one, regardless of the input.

Task reference

  • Service: CleverAge\ProcessBundle\Task\ConstantIterableOutputTask
  • Code: constant_iterable_output (task: constant_iterable_output)
  • Iterable task

Accepted inputs

Input is ignored

Possible outputs

any: each value of the output array (keys are not transmitted). If the array is empty, the task is skipped.

Options

Code Type Required Default Description
output array X Array of values to iterate over

Examples

  • Iterate over a static list: 123, Test1 and Test2 are sent one after the other to debug
# Task configuration level
entry:
  task: constant_iterable_output
  options:
    output:
      id: 123
      firstname: Test1
      lastname: Test2
  outputs: [debug]