This content has been marked as final.
Show 1 reply
-
1. Re: Start jbpm process instance with a map of data
mdegan Apr 14, 2014 7:22 AM (in response to sigirisetti)Hi Surya,
The startProcess method takes parameter of the process Id and a map of parameter values. Here is a sample:
public ProcessInstance startProcess(String processId, Map<String, Object> parameters){ ProcessInstance p = kSession.startProcess(processId,parameters); return p; }
To use the data in your process, you need to map the global variables of your process to the keys passed in the map. That will make the data available to your process.
A good read is: http://docs.jboss.org/jbpm/v5.4/userguide/ch.human-tasks.html
Regards,
Manny