Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 824 Bytes

File metadata and controls

40 lines (28 loc) · 824 Bytes

InputIteratorTask

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

Task reference

  • Service: CleverAge\ProcessBundle\Task\InputIteratorTask
  • Iterable task

Accepted inputs

array, \Iterator or \IteratorAggregate: 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:
  service: '@CleverAge\ProcessBundle\Task\AggregateIterableTask'
  outputs: [iterate]
iterate:
  service: '@CleverAge\ProcessBundle\Task\InputIteratorTask'
  outputs: [next_task]