FileDataSource sourceB = new FileDataSource(DummyInputFormat.class, IN_FILE, "Source 2");
FileDataSink sink1 = new FileDataSink(DummyOutputFormat.class, OUT_FILE, sourceA, "Sink 1");
FileDataSink sink2 = new FileDataSink(DummyOutputFormat.class, OUT_FILE, sourceB, "Sink 2");
BulkIteration iteration = new BulkIteration("Loop");
iteration.setInput(sourceA);
iteration.setMaximumNumberOfIterations(10);
CrossOperator stepFunction = CrossOperator.builder(DummyCrossStub.class).name("StepFunction").
input1(iteration.getPartialSolution()).
input2(sourceB).
build();
iteration.setNextPartialSolution(stepFunction);
FileDataSink sink3 = new FileDataSink(DummyOutputFormat.class, OUT_FILE, iteration, "Sink 3");
List<FileDataSink> sinks = new ArrayList<FileDataSink>();
sinks.add(sink1);