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.
- Service:
CleverAge\ProcessBundle\Task\ConstantIterableOutputTask - Iterable task
Input is ignored
any: each value of the output array (keys are not transmitted). If the array is empty, the task is skipped.
| Code | Type | Required | Default | Description |
|---|---|---|---|---|
output |
array |
X | Array of values to iterate over |
- Iterate over a static list:
123,Test1andTest2are sent one after the other todebug
# Task configuration level
entry:
service: '@CleverAge\ProcessBundle\Task\ConstantIterableOutputTask'
options:
output:
id: 123
firstname: Test1
lastname: Test2
outputs: [debug]