mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-27 17:24:54 +00:00
fix(rules): allow TextAnnotation inside SubProcesses
This commit is contained in:
parent
12bb7d3c55
commit
5ab0db65a5
@ -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')) {
|
||||
|
@ -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', {
|
||||
|
Loading…
x
Reference in New Issue
Block a user