updates to enable save flow connections between activity->activity and activity->gateway
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user