public function addWorkflow(WorkflowDefinition $wf) { $this->getWorkflowSettings()->addWorkflowDefinition($wf->getIdentifier()); return $this; }