[jboss-user] [jBPM] - Re: getProcess in ProcessInstanceImpl throws a NullPointerException

Sandra Renaud do-not-reply at jboss.com
Thu Apr 11 09:28:21 EDT 2013


Sandra Renaud [https://community.jboss.org/people/joploya] created the discussion

"Re: getProcess in ProcessInstanceImpl throws a NullPointerException"

To view the discussion, visit: https://community.jboss.org/message/807727#807727

--------------------------------------------------------------
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/showImage/2-807727-20624/resultMapping.png  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
[https://community.jboss.org/message/807727#807727]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130411/caee6fcf/attachment.html 


More information about the jboss-user mailing list