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("bfore 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.