path = $path; return $this; } /** * @return mixed */ public function getPath() { return $this->path; } /** * @inheritdoc */ public function appliesTo(BusinessProcess $bp) { $path = $this->getPath(); if ($path === null) { return $bp->hasNodeByPath($this->getNodeName(), $this->getPath()); } else { return $bp->hasNode($this->getNodeName()); } } /** * @inheritdoc */ public function applyTo(BusinessProcess $bp) { $path = $this->getPath(); if ($path === null) { $bp->removeNode($this->getNodeName()); } else { $bp->removeNodeByPath($this->getNodeName(), $this->getPath()); } } }