JBoss Community

Re: getProcess in ProcessInstanceImpl throws a NullPointerException

created by Sandra Renaud in jBPM - View the full discussion

Finally, I set the assignation and other dynamic variable with outputparameters.

 

First I encounter a runtime exception but it was due to mySQL who creates all foreihn keys with restric cascading and prevent jbpm from updating task parameters.

I just change the cascading type directly in the database and now it's works fine.

 

https://community.jboss.org/servlet/JiveServlet/downloadImage/2-807727-20624/450-311/resultMapping.png

 

In the step validation (java code):

 

Map<String, Object> results = new HashMap<>();
                    results.put("userAssign", userAssign);
                    results.put("groupAssign", groupAssign);
                    results.put("formValid", formValid);
  
                    taskManager.completeTask(taskManager.getManageTask(),results);

 

Thank you very much again Marco!

Reply to this message by going to Community

Start a new discussion in jBPM at Community