private void execEachSegmentInPipe(ExecEachSegmentType execSegment, PipeOperationInfo pipeInfo) { if (execSegment.getExecOnce() != null) { getExecSegmentOnceOperations(execSegment).forEach(pipeInfo::addCycleOperation); } else if (execSegment.getPipe() != null) { getExecSegmentPipeOperations(execSegment).forEach(pipeInfo::addCycleOperation); } }
private void execSegment(ExecEachSegmentType execSegment) throws IOException { if (execSegment.getExecOnce() != null) { for (OperationInfo segmentOperation : getExecSegmentOnceOperations(execSegment)) { executeStrategyFactory.createExecuteOnceStrategy(contextProvider).execute(segmentOperation); } } else if (execSegment.getPipe() != null) { for (List<OperationInfo> pipeOperations : getExecSegmentPipeOperations(execSegment)) { PipeOperationInfo pipeInfo = new PipeOperationInfo(); pipeInfo.addTailOperations(pipeOperations); executeStrategyFactory.createExecutePipeStrategy(contextProvider).execute(pipeInfo); } } }