This content has been marked as final.
Show 2 replies
-
1. Re: Couldn't retrieve the node name for the process instance in JBPM 5.0.0
bardelman Feb 12, 2013 2:45 AM (in response to bardelman)the exception is :
Caused by: java.lang.NullPointerException
at org.jbpm.process.instance.impl.ProcessInstanceImpl.getProcess(ProcessInstanceImpl.java:67
)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.getWorkflowProcess(WorkflowPr
ocessInstanceImpl.java:180)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.getNodeContainer(WorkflowProc
essInstanceImpl.java:68)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.getNode(NodeInstanceImpl.java:100)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.getNodeName(WorkItemNodeInstance.jav
a:273)
-
2. Re: Couldn't retrieve the node name for the process instance in JBPM 5.0.0
roxy1987 Feb 19, 2013 6:52 PM (in response to bardelman)I dont understand which node of the process you are looking for. You can probably use the following code :
readKnowledgeBase(processName); // custom method to read knowledge base process = kbase.getProcess(processDefId); try { List<NodeInstanceLog> nodeInstanceLogList; for (Node node : (Node[])((WorkflowProcessImpl) process).getNodes()) { // You have the node object. DO whatever you want with it. } } catch(Exception e) { CustomExceptionHandler.handleException(e); }