/** * Create an instance of {@link ExecEachSegmentType } * */ public ExecEachSegmentType createExecEachSegmentType() { return new ExecEachSegmentType(); }
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); } }
if (execSegment.getExecOnce() != null) { OperationInfo operationInfo = new OperationInfo(execSegment.getExecOnce().getValue(), execSegment.getName(), contextInfo, skipOperationResolver .setContextInfo(contextInfo) .isSkip(execSegment.getExecOnce(), execSegment, execEachSeq)); result.add(operationInfo); if (execSegment.getDynamicParameter() != null) { for (DynamicParameterConcatType dynamicParam : execSegment.getDynamicParameter()) { contextProvider.getDynamicContext().addParameter(dynamicParam, contextInfo, skipOperationResolver
if (execSegment.getPipe() != null) { List<OperationInfo> pipeOperations = new ArrayList<>(); for (ExecOnceType execOnceType : execSegment.getPipe().getExecOnce()) { OperationInfo operationInfo = new OperationInfo(execOnceType.getValue(), execOnceType.getName(), contextInfo, skipOperationResolver if (execSegment.getDynamicParameter() != null) { for (DynamicParameterConcatType dynamicParam : execSegment.getDynamicParameter()) { contextProvider.getDynamicContext().addParameter(dynamicParam, contextInfo, skipOperationResolver
/** * Create an instance of {@link ExecEachSegmentType } * */ public ExecEachSegmentType createExecEachSegmentType() { return new ExecEachSegmentType(); }
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); } } }