public function run(array $args = [], $enableLog = false)
    {
        try {
            return $this->workflow->run($args, $enableLog);
        } catch (WorkflowException $ex) {
            throw new StateMachineException('Error running State Machine', 100, $ex);
        }
    }
public function run(array $args = [], $enableLog = false)
    {
        try {
            return $this->workflow->run($args, $enableLog);
        } catch (WorkflowException $ex) {
            throw new StateMachineException('Error running State Machine', 100, $ex);
        }
    }
public function run ( array $ args = [ ] , $ enableLog = false ) { try { return $ this -> workflow -> run ( $ args , $ enableLog ) ; } catch ( WorkflowException $ ex ) { throw new StateMachineException ( 'Error running State Machine' , 100 , $ ex ) ; } }
Run the state machine with optional arguments.

@param array $args
@param bool  $enableLog

@return mixed

@throws StateMachineException
Run the state machine with optional arguments .