feat(ordering): add sequence flow + association to correct parent

* remove ModelUtil#getSharedParent because we do proper ordering
  via BpmnOrderingProvider now.
* Cherio!

Related to #316
This commit is contained in:
Nico Rehwaldt
2015-08-21 14:21:56 +02:00
committed by pedesen
parent e66f2d92aa
commit d9788c7f31
4 changed files with 58 additions and 29 deletions

View File

@ -47,8 +47,6 @@ Modeling.prototype.updateLabel = function(element, newLabel) {
};
var getSharedParent = require('./ModelingUtil').getSharedParent;
Modeling.prototype.connect = function(source, target, attrs) {
var bpmnRules = this._bpmnRules;
@ -70,7 +68,7 @@ Modeling.prototype.connect = function(source, target, attrs) {
}
}
return this.createConnection(source, target, attrs, getSharedParent(source, target));
return this.createConnection(source, target, attrs, source.parent);
};