Immediately stops the process and marks its history as failed. Unlike DieTask, the stop is handled by the process manager (no following task is executed, including remaining iterations). Useful to halt execution in an error branch.
- Service:
CleverAge\ProcessBundle\Task\StopTask
Input is ignored
None, the process is stopped
This task has no option.
- Stop the process on the first validation error
# Task configuration level
validate:
service: '@CleverAge\ProcessBundle\Task\Validation\ValidatorTask'
error_strategy: skip
error_outputs: [abort]
abort:
service: '@CleverAge\ProcessBundle\Task\StopTask'