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

Sandra Renaud do-not-reply at jboss.com
Fri Apr 5 05:48:30 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/806646#806646

--------------------------------------------------------------
OK I understand your explainations about jbpm black box.

About the nodeInstance it is to look for node metada as I am interesting about Shobhit Tyaqi question :  https://community.jboss.org/message/806501#806501 https://community.jboss.org/message/806501#806501

But this is effectively not critical for my project. However, I encounter the same problem for a pillar method of my project that consists in setting process variable at each step of all my processes :

public void setProcessVariable(Long processInstanceId, String key, Object object){
                    WorkflowProcessInstance wpi = (WorkflowProcessInstance)kSession.getProcessInstance(processInstanceId);
                    if((wpi == null) || (wpi.getVariable(key) == null)){
                              System.out.println("workflow process instance is null :-(");
                    }else{
                              System.out.println("workflow process instance is NOT null :-)");
                              wpi.setVariable(key, object);
                    }
          }

So this is why I need your help.

Many thank for all your answers.
Sandra
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/806646#806646]

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/20130405/d002d81a/attachment-0001.html 


More information about the jboss-user mailing list