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());
         }
     }
 }
Exemple #2
0
    public function removeLane($lanUid)
    {
        try {
            self::log("Remove Lane: $lanUid");

            $lane = LanePeer::retrieveByPK($lanUid);
            $lane->delete();

            // remove related object (flows)
            Flow::removeAllRelated($lanUid);

            self::log("Remove Lane Success!");
        } catch (\Exception $e) {
            self::log("Exception: ", $e->getMessage(), "Trace: ", $e->getTraceAsString());
            throw $e;
        }
    }