public function getWorkflowInstance()
    {
        if (!$this->currentInstance) {
            $this->currentInstance = $this->getWorkflowService()->getWorkflowFor($this->owner);
        }

        return $this->currentInstance;
    }
public function getWorkflowInstance()
    {
        if (!$this->currentInstance) {
            $this->currentInstance = $this->getWorkflowService()->getWorkflowFor($this->owner);
        }

        return $this->currentInstance;
    }
public function getWorkflowInstance ( ) { if ( ! $ this -> currentInstance ) { $ this -> currentInstance = $ this -> getWorkflowService ( ) -> getWorkflowFor ( $ this -> owner ) ; } return $ this -> currentInstance ; }
Gets the current instance of workflow

@return WorkflowInstance
Gets the current instance of workflow