Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 855 Bytes

input_iterator_task.md

File metadata and controls

41 lines (29 loc) · 855 Bytes

InputIteratorTask

Iterates over the input and outputs each value one by one.

Task reference

  • Service: CleverAge\ProcessBundle\Task\InputIteratorTask
  • Code: input_iterator (task: input_iterator)
  • Iterable task

Accepted inputs

array, \Iterator or \IteratorAggregate (whatever \Traversable its getIterator() returns): any other type throws an UnexpectedValueException

Possible outputs

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

Options

This task has no option.

Examples

  • Aggregate a list, then iterate over it again
# Task configuration level
aggregate:
  task: aggregate_iterable
  outputs: [iterate]
iterate:
  task: input_iterator
  outputs: [next_task]