raoul2000\workflow\base\SimpleWorkflowBehavior::selectDefaultWorkflowId PHP Method

selectDefaultWorkflowId() private method

The workflow ID returned is the current workflow ID (if the model is in a workflow) or the default workflow id as it has been configured.
See also: getDefaultWorkflowId()
private selectDefaultWorkflowId ( ) : string
return string workflow Id
    private function selectDefaultWorkflowId()
    {
        if ($this->getWorkflowStatus() != null) {
            return $this->getWorkflowStatus()->getWorkflowId();
        } else {
            return $this->getDefaultWorkflowId();
        }
    }