mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-18 11:56:30 +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:Collaboration',
|
||||||
'bpmn:Lane',
|
'bpmn:Lane',
|
||||||
'bpmn:Participant',
|
'bpmn:Participant',
|
||||||
'bpmn:Process' ]);
|
'bpmn:Process',
|
||||||
|
'bpmn:SubProcess' ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is(element, 'bpmn:MessageFlow')) {
|
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() {
|
it('connect DataObjectReference -> StartEvent_None', inject(function() {
|
||||||
|
|
||||||
expectCanConnect('DataObjectReference', 'StartEvent_None', {
|
expectCanConnect('DataObjectReference', 'StartEvent_None', {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user