feat(modeling): add reconnect rule

This commit is contained in:
Philipp Fromme 2019-11-04 09:13:50 +01:00 committed by Nico Rehwaldt
parent bdc3b70b2a
commit ea9eacea6b
1 changed files with 9 additions and 0 deletions

View File

@ -105,6 +105,15 @@ BpmnRules.prototype.init = function() {
return canConnect(source, target, connection);
});
this.addRule('connection.reconnect', function(context) {
var connection = context.connection,
source = context.source,
target = context.target;
return canConnect(source, target, connection);
});
this.addRule('connection.updateWaypoints', function(context) {
return {
type: context.connection.type