updates to enable save flow connections between activity->activity and activity->gateway

This commit is contained in:
Erik Amaru Ortiz
2014-02-07 15:42:24 -04:00
parent 4d71995da7
commit 82da942ea1
6 changed files with 147 additions and 39 deletions

View File

@@ -57,6 +57,19 @@ class BpmnFlow extends BaseBpmnFlow
return $flows;
}
public static function exists($floUid)
{
$c = new Criteria('workflow');
$c->add(BpmnFlowPeer::FLO_UID, $floUid);
return BpmnFlowPeer::doCount($c) > 0 ? true : false;
}
public function fromArray($data, $type = BasePeer::TYPE_FIELDNAME)
{
parent::fromArray($data, $type);
}
public function toArray($type = BasePeer::TYPE_FIELDNAME)
{
return parent::toArray($type);

View File

@@ -122,7 +122,7 @@ class BpmnGateway extends BaseBpmnGateway
{
// first, delete the related bound object
if (! is_object($this->bound) || $this->bound->getBouUid() == "") {
$this->bound = BpmnBound::findByElement('Gateway', $this->getActUid());
$this->bound = BpmnBound::findByElement('Gateway', $this->getGatUid());
}
if (is_object($this->bound)) {