fix(modeling): disallow connection -> startEvent

This commit is contained in:
Nico Rehwaldt 2014-09-15 16:00:57 +02:00
parent c797fec8e2
commit 36cb6777ce
1 changed files with 1 additions and 0 deletions

View File

@ -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');
}; };