When trying to throw a message event when executing a jbpm workflow (jbpm5.3), I'm getting a workItem with no "Message" parameter. When executing the workflow I get a "Sending message: null" on the console (from the default SendTaskHandler implementation). The problem is there is no "Message" defined on the workItem parameters. The "messageType" though is there and set to "java.lang.String" (as defined on my structureRef below)
below is my bpmn2 xml code that is relevant to the problem.
<itemDefinition id="msg1Def" structureRef="java.lang.String"> </itemDefinition>
<message id="msg1" name="msg1" itemRef="msg1Def"/>
(....)
<intermediateThrowEvent id="id_4" name="id_4">
<incoming>id_9</incoming>
<outgoing>id_12</outgoing>
<messageEventDefinition messageRef="msg1">
</messageEventDefinition>
</intermediateCatchEvent>
Any ideas why I'm not getting any message on the handler? Do I need something else set on the xml to receive it?