public void run() throws Exception { StagedConfiguration stagedConfig = new StagedConfigurationImpl(config); FunnelingStrategy ps = getProcessingStrategy(); for (Stage stage : stagedConfig) { FunneledFlow funnel = ps.newFunnelStrategy(builder.getExperimentUuid()); AnyObject conf = stage.getConfiguration(); CollectionReader reader = builder.buildCollectionReader(conf, stage.getId()); AnalysisEngine pipeline = builder.buildPipeline(conf, "pipeline", stage.getId(), funnel); if (conf.getIterable("post-process") != null) { AnalysisEngine post = builder.buildPostProcess(conf, "post-process", stage.getId()); SimplePipelineRev803.runPipeline(reader, pipeline, post); } else { SimplePipelineRev803.runPipeline(reader, pipeline); } Progress progress = reader.getProgress()[0]; long total = progress.getCompleted(); processedItems.add(total); } }