JBoss Community

Re: Couldn't retrieve the node name for the process instance in JBPM 5.0.0

created by roxy1987 in jBPM Development - View the full discussion

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 baseprocess = 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);
}
 
 
 

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community