private static Process getProcess(FlowElement fe, Definitions defs) { for (Process p : defs.getProcesses()) { for (FlowElement elt : p.getFlowElement()) { if (fe.equals(elt)) { return p; } } } return null; }
if(process.getFlowElement()!=null){ fillProcess(pBean,process,def);