Merge branch 'master' into develop

This commit is contained in:
Philipp Fromme 2020-06-23 15:51:26 +02:00
commit 95e8a42db0
2 changed files with 4 additions and 2 deletions

View File

@ -268,7 +268,8 @@ function isSameOrganization(a, b) {
function isMessageFlowSource(element) {
return (
is(element, 'bpmn:InteractionNode') && (
is(element, 'bpmn:InteractionNode') &&
!is(element, 'bpmn:BoundaryEvent') && (
!is(element, 'bpmn:Event') || (
is(element, 'bpmn:ThrowEvent') &&
hasEventDefinitionOrNone(element, 'bpmn:MessageEventDefinition')
@ -280,6 +281,7 @@ function isMessageFlowSource(element) {
function isMessageFlowTarget(element) {
return (
is(element, 'bpmn:InteractionNode') &&
!is(element, 'bpmn:BoundaryEvent') &&
!isForCompensation(element) && (
!is(element, 'bpmn:Event') || (
is(element, 'bpmn:CatchEvent') &&

View File

@ -656,7 +656,7 @@ describe('features/modeling/rules - BpmnRules', function() {
expectCanConnect('Task_in_OtherProcess', 'BoundaryEvent_on_SubProcess', {
sequenceFlow: false,
messageFlow: true,
messageFlow: false,
association: false,
dataAssociation: false
});