[jboss-user] [jBPM] - Re: How to pass a variable value to java task

Michael Wohlfart do-not-reply at jboss.com
Tue Sep 21 17:49:38 EDT 2010


Michael Wohlfart [http://community.jboss.org/people/mwohlf] created the discussion

"Re: How to pass a variable value to java task"

To view the discussion, visit: http://community.jboss.org/message/562977#562977

--------------------------------------------------------------
Hi Jeen,
you can also pass variables when you signal an already running process instance, the ExecutionService has a signal method that takes a map as parameter.

I haven't used java tasks that much, I found custom activities to be more convenient (see:  http://docs.jboss.com/jbpm/v4/userguide/html_single/#custom http://docs.jboss.com/jbpm/v4/userguide/html_single/#custom) you have access to the execution in their signal() and execute() methods, the variables can be retrieved with execution.getVariable('varname').
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[http://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/20100921/f1a7456e/attachment.html 


More information about the jboss-user mailing list