SpringSource/spring-batch — pull request #92 by dsyer (2012-12-17 10:35:24+00:00)
Title: BATCH-1923: add stop() methods to FlowBuilder

Example from unit test:

SimpleJobBuilder builder = new JobBuilder("flow").repository(jobRepository).start(step1);
builder.on("COMPLETED").stop();
builder.build().execute(execution);