fix(rules): allow TextAnnotation inside SubProcesses

This commit is contained in:
Nico Rehwaldt 2016-01-26 18:24:05 +01:00
parent 12bb7d3c55
commit 5ab0db65a5
2 changed files with 8 additions and 1 deletions

View File

@ -371,7 +371,8 @@ function canDrop(element, target, position) {
'bpmn:Collaboration',
'bpmn:Lane',
'bpmn:Participant',
'bpmn:Process' ]);
'bpmn:Process',
'bpmn:SubProcess' ]);
}
if (is(element, 'bpmn:MessageFlow')) {

View File

@ -96,6 +96,12 @@ describe('features/modeling/rules - BpmnRules', function() {
}));
it('drop TextAnnotation -> SubProcess', inject(function() {
expectCanDrop('TextAnnotation', 'SubProcess', true);
}));
it('connect DataObjectReference -> StartEvent_None', inject(function() {
expectCanConnect('DataObjectReference', 'StartEvent_None', {