[jboss-user] [jBPM] - No "Message" parameter set during executeWorkItem on SendTaskHandler

Bira Neto do-not-reply at jboss.com
Mon Jun 25 15:02:48 EDT 2012


Bira Neto [https://community.jboss.org/people/biraneto] created the discussion

"No "Message" parameter set during executeWorkItem on SendTaskHandler"

To view the discussion, visit: https://community.jboss.org/message/744073#744073

--------------------------------------------------------------
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?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/744073#744073]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120625/ea230420/attachment.html 


More information about the jboss-user mailing list