uvijayreddy657 [
http://community.jboss.org/people/uvijayreddy657] created the discussion
"Re: Bug : Getting NullPointerException when getting the ProcessInstance p =
ksession.getProcessInstance(id)"
To view the discussion, visit:
http://community.jboss.org/message/630714#630714
--------------------------------------------------------------
Actually this issue is araising when I restart my development server.
Case is: I am trying get the assigned task list of User. From Task object when I am trying
to get ProcessInstanceId and from this proessInstanceId I am trying to get RuleFlowProcess
object. when getting RuleFlowProcess object I am getting the NullPointerException
internally in the framework.
ProcessInstance processInstance =
ksession.getProcessInstance(task.getProcessInstanceId());
RuleFlowProcess process = (RuleFlowProcess)
kbase.getProcess(processInstance.getProcessId()); // in this line I am getting the
exception
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/630714#630714]
Start a new discussion in jBPM Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]