private function setBoundDefaults() { $this->bound->setBouElementType(lcfirst(str_replace(__NAMESPACE__, '', __CLASS__))); $this->bound->setPrjUid($this->getPrjUid()); $this->bound->setElementUid($this->getArtUid()); $process = BpmnProcessPeer::retrieveByPK($this->getProUid()); if (is_object($process)) { $this->bound->setDiaUid($process->getDiaUid()); if ($this->bound->getBouElement()) { $lane = BpmnLanePeer::retrieveByPK($this->bound->getBouElement()); $laneset = BpmnLanesetPeer::retrieveByPK($this->bound->getBouElement()); if (is_object($lane)) { $this->bound->setBouContainer('bpmnLane'); } elseif (is_object($laneset)) { $this->bound->setBouContainer('bpmnPool'); } } else { $this->bound->setBouContainer('bpmnDiagram'); $this->bound->setBouElement($process->getDiaUid()); } } }
public function removeLaneset($lnsUid) { try { self::log("Remove Laneset: $lnsUid"); $laneset = LanesetPeer::retrieveByPK($lnsUid); $laneset->delete(); // remove related object (flows) Flow::removeAllRelated($lnsUid); self::log("Remove Laneset Success!"); } catch (\Exception $e) { self::log("Exception: ", $e->getMessage(), "Trace: ", $e->getTraceAsString()); throw $e; } }