fix(modeling): disallow connection -> startEvent
This commit is contained in:
parent
c797fec8e2
commit
36cb6777ce
|
@ -92,6 +92,7 @@ Modeling.prototype.canConnect = function(source, target) {
|
||||||
return source.businessObject.$parent === target.businessObject.$parent &&
|
return source.businessObject.$parent === target.businessObject.$parent &&
|
||||||
source.businessObject.$instanceOf('bpmn:FlowNode') &&
|
source.businessObject.$instanceOf('bpmn:FlowNode') &&
|
||||||
!source.businessObject.$instanceOf('bpmn:EndEvent') &&
|
!source.businessObject.$instanceOf('bpmn:EndEvent') &&
|
||||||
|
!target.businessObject.$instanceOf('bpmn:StartEvent') &&
|
||||||
target.businessObject.$instanceOf('bpmn:FlowElement');
|
target.businessObject.$instanceOf('bpmn:FlowElement');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue