protected function initWorkflow()
    {
        $className = $this->workflowConfiguration['class']['name'];

        if (!class_exists($className, true)) {
            throw new StateMachineException('The class ' . $className . ' does not exist!', 100);
        }

        try {
            $this->workflow = new $className($this->workflowConfiguration);
        } catch (WorkflowException $ex) {
            throw new StateMachineException('Workflow with some problems', 90, $ex);
        }
    }
protected function initWorkflow()
    {
        $className = $this->workflowConfiguration['class']['name'];

        if (!class_exists($className, true)) {
            throw new StateMachineException('The class ' . $className . ' does not exist!', 100);
        }

        try {
            $this->workflow = new $className($this->workflowConfiguration);
        } catch (WorkflowException $ex) {
            throw new StateMachineException('Workflow with some problems', 90, $ex);
        }
    }
protected function initWorkflow ( ) { $ className = $ this -> workflowConfiguration [ 'class' ] [ 'name' ] ; if ( ! class_exists ( $ className , true ) ) { throw new StateMachineException ( 'The class ' . $ className . ' does not exist!' , 100 ) ; } try { $ this -> workflow = new $ className ( $ this -> workflowConfiguration ) ; } catch ( WorkflowException $ ex ) { throw new StateMachineException ( 'Workflow with some problems' , 90 , $ ex ) ; } }
Create the workflow.

@throws \Mothership\StateMachine\Exception\StateMachineException
Create the workflow .