From ea9eacea6be758c82496ba3212d9f7796aca0779 Mon Sep 17 00:00:00 2001 From: Philipp Fromme Date: Mon, 4 Nov 2019 09:13:50 +0100 Subject: [PATCH] feat(modeling): add reconnect rule --- lib/features/rules/BpmnRules.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/features/rules/BpmnRules.js b/lib/features/rules/BpmnRules.js index 3256da62..1a364a42 100644 --- a/lib/features/rules/BpmnRules.js +++ b/lib/features/rules/BpmnRules.js @@ -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