Esempio n. 1
0
  public void invoke(PipelineContext pipelineContext) throws Exception {
    if (condition.isSatisfied(pipelineContext)) {
      block.newInvocation(pipelineContext).invoke();
    }

    pipelineContext.invokeNext();
  }
Esempio n. 2
0
 public static void add(PipelineContext pipelineContext) {
   if (pipelineContext.getAttribute(counterName) != null) {
     log.get()
         .add(
             String.format(
                 "%d-%d-loop-%d",
                 pipelineContext.level(),
                 pipelineContext.index(),
                 pipelineContext.getAttribute(counterName)));
   } else {
     log.get().add(String.format("%d-%d", pipelineContext.level(), pipelineContext.index()));
   }
 }