private function selectDefaultWorkflowId() { if ($this->getWorkflowStatus() != null) { return $this->getWorkflowStatus()->getWorkflowId(); } else { return $this->getDefaultWorkflowId(); } }