mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-11 17:44:12 +00:00
feat(modeling): add reconnect rule
This commit is contained in:
parent
bdc3b70b2a
commit
ea9eacea6b
@ -105,6 +105,15 @@ BpmnRules.prototype.init = function() {
|
|||||||
return canConnect(source, target, connection);
|
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) {
|
this.addRule('connection.updateWaypoints', function(context) {
|
||||||
return {
|
return {
|
||||||
type: context.connection.type
|
type: context.connection.type
|
||||||
|
Loading…
x
Reference in New Issue
Block a user