JBoss Community

Re: How to set a process variable from java code ?

created by Shobhit Tyagi in jBPM - View the full discussion

Use this code when completing a task :

 

client.start(id, user)

Map<String, Object> var= new HashMap<String, Object>();

firstHtOutputMap.put("variable", "value");

 

ContentData contentData = ContentMarshallerHelper.marshal(var, null);

client.complete(id, user, contentData);



Reply to this message by going to Community

Start a new discussion in jBPM at Community