Details
-
Bug Report
-
Resolution: Won't Fix
-
L3 - Default
-
None
-
7.9.0, 7.10.0, 7.11.0, 7.12.0
-
None
Description
Scenario:
1. Deploy a process containing receive task without messageRef, example:
<?xml version="1.0" encoding="UTF-8"?> <definitions id="definitions" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" targetNamespace="Examples" xmlns:tns="Examples"> <process id="process" isExecutable="true"> <startEvent id="theStart" /> <sequenceFlow sourceRef="theStart" targetRef="receiveTask" /> <receiveTask id="receiveTask" /> <sequenceFlow sourceRef="receiveTask" targetRef="theEnd" /> <endEvent id="theEnd" /> </process> </definitions>
Expected:
The deploy fails with an exception for missing messageRef
Current:
The process is successfully deployed and no message can be received for this receive task.
Hint:
Currently, the check of errors is performed (#parseMessageEventDefinition()) only in case messageRef != null:
https://github.com/camunda/camunda-bpm-platform/blob/0b5e4f47755bea73feaf3ecc9e02f5c5f7943a0e/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/BpmnParse.java#L2565