2 Replies Latest reply on Jan 11, 2013 11:49 PM by snowstorm tech

    How to get and update the process variable outside the process.

    snowstorm tech Newbie

      Hi,

      I want to get and update the process variable outside the the process in java code.How can i achive this. I have used the following code given below:

       

      Map param=new Hash();
      
      param.put("rejectStatus",true);
      
      WorkflowProcessInstance workflowProcessInstance=(WorkflowProcessInstance)  ksession.startProcess("Myprocess",param);
      System.out.println("before value set====>"+workflowProcessInstance.getVariable("rejectStatus")); //Here the value that i'm able to get is Null.
      workflowProcessInstance.setVariable("rejectStatus", rejectStatus);//Here I'm getting a NullPointerException.
      
      

       

      This is the way i tried to achive my goal but its not working.

      Pls help me.

       

      Thanks in andvance.