JBoss Community

Re: passing data to nodes

created by Demian Calcaprina in jBPM - View the full discussion

You define process variables and then, in a task node, you receive parameters and put results. You map these parameters and results to process variables. So you share information between nodes with the process variables.

 

In the work item handler, you retrieve the parameters from workItem.getParameters(), and you put the results in the way you mentioned (.completeWorkItem).

 

If you are in a gateway, you can access directly to a process variable by its name. (you can use it in a constraint for example).

 

Regards,

 

Demian

Reply to this message by going to Community

Start a new discussion in jBPM at Community