use of pipelite.controller.api.info.ProcessInfo in project pipelite by enasequence.
the class ProcessController method getProcesses.
private static List<ProcessInfo> getProcesses(ProcessRunnerPool processRunnerPool, String pipelineName) {
List<ProcessInfo> processes = new ArrayList<>();
for (ProcessRunner processRunner : processRunnerPool.getActiveProcessRunners()) {
Process process = processRunner.getProcess();
ProcessEntity processEntity = process.getProcessEntity();
if (pipelineName == null || pipelineName.equals(processRunner.getPipelineName())) {
ProcessInfo processInfo = getProcess(processEntity);
processes.add(processInfo);
}
}
return processes;
}
Aggregations