Task/TransformerTask.php
public function execute(ProcessState $state)
    {
        $output = null;
        $options = $this->getOptions($state);

        try {
            $output = $this->applyTransformers($options['transformers'], $state->getInput());
        } catch (TransformerException $e) {
            $state->addErrorContextValue('error', $e->getPrevious()->getMessage());
            $state->setException($e);

            return;
        }
        $state->setOutput($output);
    }
public function execute(ProcessState $state)
    {
        $output = null;
        $options = $this->getOptions($state);

        try {
            $output = $this->applyTransformers($options['transformers'], $state->getInput());
        } catch (TransformerException $e) {
            $state->addErrorContextValue('error', $e->getPrevious()->getMessage());
            $state->setException($e);

            return;
        }
        $state->setOutput($output);
    }
@param ProcessState $state

@throws \Symfony\Component\OptionsResolver\Exception\ExceptionInterface
@throws \CleverAge\ProcessBundle\Exception\MissingTransformerException
@throws \UnexpectedValueException
@throws \Symfony\Component\OptionsResolver\Exception\AccessException
@throws \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
@throws \Symfony\Component\OptionsResolver\Exception\MissingOptionsException
@throws \Symfony\Component\OptionsResolver\Exception\NoSuchOptionException
@throws \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
@throws \Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException