for (Pipeline pipeline : pipelines) {
if (processStatService.listRealtimeProcessStat(channel.getId(), pipeline.getId()).isEmpty()) {
processEmpty = true;
}
}
SeniorChannel seniorChannel = new SeniorChannel();
seniorChannel.setId(channel.getId());
seniorChannel.setName(channel.getName());
seniorChannel.setParameters(channel.getParameters());
seniorChannel.setPipelines(channel.getPipelines());
seniorChannel.setStatus(channel.getStatus());
seniorChannel.setDescription(channel.getDescription());
seniorChannel.setGmtCreate(channel.getGmtCreate());
seniorChannel.setGmtModified(channel.getGmtModified());
seniorChannel.setProcessEmpty(processEmpty);
seniorChannels.add(seniorChannel);
}
context.put("channels", seniorChannels);
context.put("paginator", paginator);