JBoss Community

Re: Query the workflow process definition

created by Maciej Swiderski in jBPM - View the full discussion

Have you tried to use knowledge base to get processes and then cast it to NodeContainer?

 

 

Collection<Process> processes = kbase.getProcesses();
 
for (Process p : processes) {
     NodeContainer container = (NodeContainer) p;
     // following line should return all nodes in the process - hopefully 
     container.getNodes();
}

 

NOTE: It is written by hand the code so it can have some typos... don't have access to my development environment now so was not able to verify that.

 

HTH

Reply to this message by going to Community

Start a new discussion in jBPM at Community