Skip to content

Commit 390df08

Browse files
committed
fix(BpmnRules): disallow boundary event as messageFlow target
closes #1300
1 parent a445144 commit 390df08

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/features/rules/BpmnRules.js

+1
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ function isMessageFlowSource(element) {
280280
function isMessageFlowTarget(element) {
281281
return (
282282
is(element, 'bpmn:InteractionNode') &&
283+
!is(element, 'bpmn:BoundaryEvent') &&
283284
!isForCompensation(element) && (
284285
!is(element, 'bpmn:Event') || (
285286
is(element, 'bpmn:CatchEvent') &&

test/spec/features/rules/BpmnRulesSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ describe('features/modeling/rules - BpmnRules', function() {
656656

657657
expectCanConnect('Task_in_OtherProcess', 'BoundaryEvent_on_SubProcess', {
658658
sequenceFlow: false,
659-
messageFlow: true,
659+
messageFlow: false,
660660
association: false,
661661
dataAssociation: false
662662
});

0 commit comments

Comments
 (0)