fix(modeling): do not remove default sequence flow on type change
* do not remove default sequence flow when changing type to intermediate catch Closes #1197
This commit is contained in:
parent
b290078600
commit
37bcd070e8
|
@ -234,10 +234,13 @@ export default function BpmnUpdater(
|
||||||
|
|
||||||
// on reconnectEnd -> default flow
|
// on reconnectEnd -> default flow
|
||||||
if ((businessObject.sourceRef && businessObject.sourceRef.default) &&
|
if ((businessObject.sourceRef && businessObject.sourceRef.default) &&
|
||||||
!(is(newTarget, 'bpmn:Activity') ||
|
!isAny(newTarget, [
|
||||||
is(newTarget, 'bpmn:EndEvent') ||
|
'bpmn:Activity',
|
||||||
is(newTarget, 'bpmn:Gateway') ||
|
'bpmn:EndEvent',
|
||||||
is(newTarget, 'bpmn:IntermediateThrowEvent'))) {
|
'bpmn:Gateway',
|
||||||
|
'bpmn:IntermediateThrowEvent',
|
||||||
|
'bpmn:IntermediateCatchEvent'
|
||||||
|
])) {
|
||||||
context.default = businessObject.sourceRef.default;
|
context.default = businessObject.sourceRef.default;
|
||||||
businessObject.sourceRef.default = undefined;
|
businessObject.sourceRef.default = undefined;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1459,7 +1459,8 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
[
|
[
|
||||||
'bpmn:Activity',
|
'bpmn:Activity',
|
||||||
'bpmn:EndEvent',
|
'bpmn:EndEvent',
|
||||||
'bpmn:IntermediateThrowEvent'
|
'bpmn:IntermediateThrowEvent',
|
||||||
|
'bpmn:IntermediateCatchEvent'
|
||||||
].forEach(function(type) {
|
].forEach(function(type) {
|
||||||
|
|
||||||
it('should keep DefaultFlow when changing target to ' + type,
|
it('should keep DefaultFlow when changing target to ' + type,
|
||||||
|
|
Loading…
Reference in New Issue