i wanted to know how to start a process in JBPM 6.1.0.CR1 through REST passing a custom object.
When i start a process through jbpm-console the form is displayed to input the data. Is there a way to pass the same data through a REST call ?
My ultimate goal is to have a JMeter script fire up multiple processes in order to test the performance of the system.
Even if passing custom objects is not feasible, i would like to know whether it is possible to pass primitive types (String, Integer etc) - even then i could construct my custom object after firing the process.
I tried JBPM documentation but i cannot understand how to use query params and whether it applies in my scenario.
The best solution i turned out with, was to analyze my custom Object to primitives and pass these over REST (as map_* query parameters). The custom Object is then created in the flow within a script task (calling kcontext.put("obj",obj) ).
This way i maintain simplicity and avoid XML / JSON marshalling that takes up more resources.
Ofcourse, in case a very complex custom object needs to be passed the solution Kris is proposing is probably better - however if your custom object is THAT complex probably you need to refactor / analyze your model more.