[jboss-user] [jBPM] - Re: passing data to nodes

Demian Calcaprina do-not-reply at jboss.com
Tue Sep 6 12:04:32 EDT 2011


Demian Calcaprina [http://community.jboss.org/people/calca] created the discussion

"Re: passing data to nodes"

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

--------------------------------------------------------------
You start your process with this map.

This will get keys from the map, and put them into the process variable you have defined.

Then, in a task node, you have to map each process variable you will need to a node variable.

Then, when you are in work item handler, you will get the parameters you have defined for this node, not all process variables.

To make it more clear. If you are using Eclipse plugin, 
1) Define "examOK" variable in process. Click on process->Properties->Variables, and then add this variable
2) Then, for example you have a custom node. Click on the node->Properties->Parameter Mapping, and then you put the name of the process variable, "examOK", and the name you will use it inside work item handler (it can be the same).
3) Then, with workItem.getParameter("examOK") should work.

Hope this helps,

Demian
--------------------------------------------------------------

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

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/20110906/9e03a4fa/attachment.html 


More information about the jboss-user mailing list