Updates for BpmnActivityTest class

This commit is contained in:
Erik Amaru Ortiz
2014-02-04 23:19:10 -04:00
parent ad27682bc3
commit ee480a93e3
5 changed files with 101 additions and 263 deletions

View File

@@ -163,15 +163,16 @@ class BpmnActivity extends BaseBpmnActivity
$data = parent::toArray($type);
$bouUid = $this->bound->getBouUid();
if (! empty($bouUid)) {
if (empty($bouUid)) {
$bound = BpmnBound::findByElement('Activity', $this->getActUid());
if (is_object($bound)) {
$this->bound = $bound;
$data = array_merge($data, $this->bound->toArray($type));
}
}
$data = array_merge($data, $this->bound->toArray($type));
return $data;
}