JBoss Community

Passing data to

created by Christian Wuertz in jBPM - View the full discussion

Hi,

I wrote a simple example which uses a Service Tasks to call a webservice. This works fine. But I have no idea how I can forward the retrieved data to another service task.

 

This is what I tried to do:

public void executeWorkItem(WorkItem i, WorkItemManager m) 
{
     HashMap<String, Object> results = new HashMap<String, Object>();
     results.put("test1", "result1");
     results.put("test2", "result2");
 
     m.completeWorkItem(i.getId(), results);
}

 

But then I don't know how to access these parameters.

 

I hope you can help me!

Reply to this message by going to Community

Start a new discussion in jBPM at Community