I end up getting the following error message: org.flowable.common.engine.api.FlowableException: No message start event found for process definition decision_dispatcher:1:49bc2579-bfd0-11e8-85e9-38c9863fd04d and message name newTrackingInfoMessage
On debugging the error, I traced the issue to this line, which fails to initialise the initialFlowElement variable because the message ref and the messageName are not equal.
According to your documentation (and example): flowable message event definition the message ref and message name are not implied to be mandatorily equal, so I must be doing something wrong.
Any help would be grateful. Thanks
The reason why it manifested is due to first doing this when parsing from XML to the BpmnModel which happens when parsing the XML and then after that this that is invoked by the parsers and maps the messageRef to the message name in the BpmnModel. Your error should have been caught by the BPMN validation, which happens between the two steps.
Validation will not catch the error. Essentially it was an accidental replacement of a variable constant used throughout so the property key in question was accidentally changed to Constants.something as opposed to a normal string (in code). I was just wandering why that manifested in the error as the mistake was caught by accident when reviewing my git merge.