concrete/src/Workflow/Progress/Progress.php
public function runTask($task, $args = array())
    {
        $wf = $this->getWorkflowObject();
        if (in_array($task, $wf->getAllowedTasks())) {
            $wpr = call_user_func_array(array($wf, $task), array($this, $args));
            $this->updateOnAction($wf);
        }
        if (!($wpr instanceof Response)) {
            $wpr = new Response();
        }

        $event = new GenericEvent();
        $event->setArgument('response', $wpr);

        Events::dispatch('workflow_progressed', $event);

        return $wpr;
    }
public function runTask($task, $args = array())
    {
        $wf = $this->getWorkflowObject();
        if (in_array($task, $wf->getAllowedTasks())) {
            $wpr = call_user_func_array(array($wf, $task), array($this, $args));
            $this->updateOnAction($wf);
        }
        if (!($wpr instanceof Response)) {
            $wpr = new Response();
        }

        $event = new GenericEvent();
        $event->setArgument('response', $wpr);

        Events::dispatch('workflow_progressed', $event);

        return $wpr;
    }
public function runTask ( $ task , $ args = array ( ) ) { $ wf = $ this -> getWorkflowObject ( ) ; if ( in_array ( $ task , $ wf -> getAllowedTasks ( ) ) ) { $ wpr = call_user_func_array ( array ( $ wf , $ task ) , array ( $ this , $ args ) ) ; $ this -> updateOnAction ( $ wf ) ; } if ( ! ( $ wpr instanceof Response ) ) { $ wpr = new Response ( ) ; } $ event = new GenericEvent ( ) ; $ event -> setArgument ( 'response' , $ wpr ) ; Events :: dispatch ( 'workflow_progressed' , $ event ) ; return $ wpr ; }
Attempts to run a workflow task on the bound WorkflowRequest object first, then if that doesn't exist, attempts to run
it on the current WorkflowProgress object.

@return WorkflowProgressResponse
Attempts to run a workflow task on the bound WorkflowRequest object first then if that doesn t exist attempts to run it on the current WorkflowProgress object .