JBoss Community

passing data to nodes

created by Darryl Youngblood in jBPM - View the full discussion

Hey guys,

 

I'm not sure if I got it right. So far i believe there are two ways to pass information to other nodes.

 

1. In the executeWorkItem method of a custom workItemHandler class I can put information in a map and use WorkItemManager.completeWorkItem(workItemId, Map<String, Object>); to pass the information to the next node.

 

2. I could use globals to store information inside

 

Is this right or am I wrong?

 

The problems I encounter are:

 

1. I don't know how to retrieve that map from that workItemManager especially when the next node is a gateway

 

2. When I use globals it is always stored as Object which is kinda unhandy

 

ty in advance

Reply to this message by going to Community

Start a new discussion in jBPM at Community