Hi,
I tried to add the POST-Vars of a servlet-request to jbpm-context-vars, but I cant access them after that. The code is:
protected void doPost(HttpServletRequest req, HttpServletResponse response) ..{ .. ProcessInstance processInstance = new ProcessInstance(processDefinition); processInstance.getContextInstance().addVariables(req.getParameterMap()); System.out.print(processInstance.getContextInstance().getVariables()); System.out.print(req.getParameterMap()); System.out.print(req.getParameter("product")); System.out.print(processInstance.getContextInstance().getVariable("product"); ..
Try to name your object you are putting in the context.
processInstance.getContextInstance().createVariable("id", Long.valueOf(555));
Object id = executionContext.getContextInstance().getVariable( "id");