fix(bpmnRules): disallow boundaryEvents as message flow targets
closes #1300
This commit is contained in:
parent
a445144ca9
commit
8bc29e7f3e
|
@ -268,7 +268,8 @@ function isSameOrganization(a, b) {
|
||||||
|
|
||||||
function isMessageFlowSource(element) {
|
function isMessageFlowSource(element) {
|
||||||
return (
|
return (
|
||||||
is(element, 'bpmn:InteractionNode') && (
|
is(element, 'bpmn:InteractionNode') &&
|
||||||
|
!is(element, 'bpmn:BoundaryEvent') && (
|
||||||
!is(element, 'bpmn:Event') || (
|
!is(element, 'bpmn:Event') || (
|
||||||
is(element, 'bpmn:ThrowEvent') &&
|
is(element, 'bpmn:ThrowEvent') &&
|
||||||
hasEventDefinitionOrNone(element, 'bpmn:MessageEventDefinition')
|
hasEventDefinitionOrNone(element, 'bpmn:MessageEventDefinition')
|
||||||
|
@ -280,6 +281,7 @@ function isMessageFlowSource(element) {
|
||||||
function isMessageFlowTarget(element) {
|
function isMessageFlowTarget(element) {
|
||||||
return (
|
return (
|
||||||
is(element, 'bpmn:InteractionNode') &&
|
is(element, 'bpmn:InteractionNode') &&
|
||||||
|
!is(element, 'bpmn:BoundaryEvent') &&
|
||||||
!isForCompensation(element) && (
|
!isForCompensation(element) && (
|
||||||
!is(element, 'bpmn:Event') || (
|
!is(element, 'bpmn:Event') || (
|
||||||
is(element, 'bpmn:CatchEvent') &&
|
is(element, 'bpmn:CatchEvent') &&
|
||||||
|
|
|
@ -656,7 +656,7 @@ describe('features/modeling/rules - BpmnRules', function() {
|
||||||
|
|
||||||
expectCanConnect('Task_in_OtherProcess', 'BoundaryEvent_on_SubProcess', {
|
expectCanConnect('Task_in_OtherProcess', 'BoundaryEvent_on_SubProcess', {
|
||||||
sequenceFlow: false,
|
sequenceFlow: false,
|
||||||
messageFlow: true,
|
messageFlow: false,
|
||||||
association: false,
|
association: false,
|
||||||
dataAssociation: false
|
dataAssociation: false
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue