List of usage examples for org.springframework.batch.core.job.builder FlowBuilder build
public Q build()
From source file:com.github.jrrdev.mantisbtsync.core.jobs.JobProjectsConfiguration.java
/** * Build the main flow to sync a project. * * @param mantisProjectExtractorStep//from w w w . jav a2s.c om * Step poping the id of the project from the list stored in the execution context * @param projectCategoriesStep * Step syncing the categories related to the project * @param projectCustomFieldsStep * Step syncing the custom fields related to the project * @param mantisLoginStep * Step retrieving the access_level * @param projectUsersStep * Step syncing users related to this project * @param projectVersionsStep * Step syncing the versions related to this project * @return the flow */ @Bean public Flow projectInitFlow(final Step mantisProjectExtractorStep, final Step projectCategoriesStep, final Step projectCustomFieldsStep, final Step mantisLoginStep, final Step projectUsersStep, final Step projectVersionsStep) { final FlowBuilder<Flow> builder = new FlowBuilder<Flow>("projectInitFlow"); builder.start(mantisProjectExtractorStep).next(projectCategoriesStep).next(projectCustomFieldsStep) .next(mantisLoginStep).next(projectUsersStep).next(projectVersionsStep); return builder.build(); }