Iterates over the input and outputs each value one by one.
- Service:
CleverAge\ProcessBundle\Task\InputIteratorTask - Code:
input_iterator(task: input_iterator) - Iterable task
array, \Iterator or \IteratorAggregate (whatever \Traversable its getIterator() returns): any other type throws an UnexpectedValueException
any: each value of the input (keys are not transmitted). If the input is empty, the task is skipped.
This task has no option.
- Aggregate a list, then iterate over it again
# Task configuration level
aggregate:
task: aggregate_iterable
outputs: [iterate]
iterate:
task: input_iterator
outputs: [next_task]