Fix. Adicion de funcionalidad de lanes y lanesets para project
This commit is contained in:
@@ -39,16 +39,14 @@ class BpmnActivity extends BaseBpmnActivity
|
||||
$process = BpmnProcessPeer::retrieveByPK($this->getProUid());
|
||||
|
||||
if (is_object($process)) {
|
||||
|
||||
$this->bound->setDiaUid($process->getDiaUid());
|
||||
|
||||
if ($this->bound->getBouElement() == null && $this->bound->getBouElement() == '' && $this->bound->getBouElement() == $process->getDiaUid()) {
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
} else {
|
||||
if (isset($this->getLnsUid)) {
|
||||
$this->bound->setBouContainer('bpmnLane');
|
||||
$this->bound->setBouElement($this->bound->getBouElement());
|
||||
$this->bound->setBouElement($this->getLnsUid());
|
||||
} else {
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
}
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,14 @@ class BpmnArtifact extends BaseBpmnArtifact
|
||||
$process = BpmnProcessPeer::retrieveByPK($this->getProUid());
|
||||
|
||||
if (is_object($process)) {
|
||||
|
||||
$this->bound->setDiaUid($process->getDiaUid());
|
||||
|
||||
if ($this->bound->getBouElement() == null && $this->bound->getBouElement() == '' && $this->bound->getBouElement() == $process->getDiaUid()) {
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
} else {
|
||||
if (isset($this->getLnsUid)) {
|
||||
$this->bound->setBouContainer('bpmnLane');
|
||||
$this->bound->setBouElement($this->bound->getBouElement());
|
||||
$this->bound->setBouElement($this->getLnsUid());
|
||||
} else {
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
}
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,14 @@ class BpmnData extends BaseBpmnData
|
||||
$process = BpmnProcessPeer::retrieveByPK($this->getProUid());
|
||||
|
||||
if (is_object($process)) {
|
||||
|
||||
$this->bound->setDiaUid($process->getDiaUid());
|
||||
|
||||
if ($this->bound->getBouElement() == null && $this->bound->getBouElement() == '' && $this->bound->getBouElement() == $process->getDiaUid()) {
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
} else {
|
||||
if (isset($this->getLnsUid)) {
|
||||
$this->bound->setBouContainer('bpmnLane');
|
||||
$this->bound->setBouElement($this->bound->getBouElement());
|
||||
$this->bound->setBouElement($this->getLnsUid());
|
||||
} else {
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
}
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,14 @@ class BpmnEvent extends BaseBpmnEvent
|
||||
$process = BpmnProcessPeer::retrieveByPK($this->getProUid());
|
||||
|
||||
if (is_object($process)) {
|
||||
|
||||
$this->bound->setDiaUid($process->getDiaUid());
|
||||
|
||||
if ($this->bound->getBouElement() == null && $this->bound->getBouElement() == '' && $this->bound->getBouElement() == $process->getDiaUid()) {
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
} else {
|
||||
if (isset($this->getLnsUid)) {
|
||||
$this->bound->setBouContainer('bpmnLane');
|
||||
$this->bound->setBouElement($this->bound->getBouElement());
|
||||
$this->bound->setBouElement($this->getLnsUid());
|
||||
} else {
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
}
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,14 @@ class BpmnGateway extends BaseBpmnGateway
|
||||
$process = BpmnProcessPeer::retrieveByPK($this->getProUid());
|
||||
|
||||
if (is_object($process)) {
|
||||
|
||||
$this->bound->setDiaUid($process->getDiaUid());
|
||||
|
||||
if ($this->bound->getBouElement() == null && $this->bound->getBouElement() == '' && $this->bound->getBouElement() == $process->getDiaUid()) {
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
} else {
|
||||
if (isset($this->getLnsUid)) {
|
||||
$this->bound->setBouContainer('bpmnLane');
|
||||
$this->bound->setBouElement($this->bound->getBouElement());
|
||||
$this->bound->setBouElement($this->getLnsUid());
|
||||
} else {
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
}
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ class BpmnLane extends BaseBpmnLane {
|
||||
$project = BpmnProjectPeer::retrieveByPK($this->getPrjUid());
|
||||
|
||||
if (is_object($project)) {
|
||||
|
||||
$criteria = new Criteria('workflow');
|
||||
$criteria->addSelectColumn(BpmnProcessPeer::DIA_UID);
|
||||
$criteria->add(BpmnProcessPeer::PRJ_UID, $this->getPrjUid(), \Criteria::EQUAL);
|
||||
@@ -47,8 +48,8 @@ class BpmnLane extends BaseBpmnLane {
|
||||
$rsCriteria->next();
|
||||
$row = $rsCriteria->getRow();
|
||||
$this->bound->setDiaUid($row["DIA_UID"]);
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
$this->bound->setBouElement($row["DIA_UID"]);
|
||||
$this->bound->setBouContainer('bpmnLane');
|
||||
$this->bound->setBouElement($this->getLnsUid());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,14 +40,8 @@ class BpmnLaneset extends BaseBpmnLaneset {
|
||||
if (is_object($process)) {
|
||||
|
||||
$this->bound->setDiaUid($process->getDiaUid());
|
||||
|
||||
if ($this->bound->getBouElement() == null && $this->bound->getBouElement() == '' && $this->bound->getBouElement() == $process->getDiaUid()) {
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
} else {
|
||||
$this->bound->setBouContainer('bpmnLane');
|
||||
$this->bound->setBouElement($this->bound->getBouElement());
|
||||
}
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,14 @@ class BpmnParticipant extends BaseBpmnParticipant
|
||||
$process = BpmnProcessPeer::retrieveByPK($this->getProUid());
|
||||
|
||||
if (is_object($process)) {
|
||||
|
||||
$this->bound->setDiaUid($process->getDiaUid());
|
||||
|
||||
if ($this->bound->getBouElement() == null && $this->bound->getBouElement() == '' && $this->bound->getBouElement() == $process->getDiaUid()) {
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
} else {
|
||||
if (isset($this->getLnsUid)) {
|
||||
$this->bound->setBouContainer('bpmnLane');
|
||||
$this->bound->setBouElement($this->bound->getBouElement());
|
||||
$this->bound->setBouElement($this->getLnsUid());
|
||||
} else {
|
||||
$this->bound->setBouContainer('bpmnDiagram');
|
||||
}
|
||||
$this->bound->setBouElement($process->getDiaUid());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user