Spring Cloud Data Flow allows you to create, configure, and launch a simple single-step Spring Batch job application without writing any code. Here you will learn how to configure a single-step batch job.
The single-step batch job is composed of one item reader and one writer:
The single-step batch job provides four different types of readers:
Similarly, it offers four different types of writers:
Begin by registering the single-step batch job application. In the Spring Cloud Data Flow UI, click Applications on the left side menu. This will open the Applications page.
To register an application, click Add Application(s). When the Add Application(s) page appears, select Register one or more applications.
Fill in the form as shown below, and click Import Application(s):
To create a task in the Spring Cloud Data Flow UI:
START
and END
nodes. The left of the canvas lists the available task applications, including singlestepbatchjob
, which was registered in the previous section.singlestepbatchjob
task application to the canvas.singlestepbatchjob
.You can launch the single-step batch job from the Task UI.
To launch the task:
Click the option control on the row of the singlestepbatchjob
definition, and select Launch. This opens a form where you can add command line arguments and deployment properties.
Click Edit under the Application Properties section of the Launch page.
Click App Properties, and then select spring.batch.job
from the drop-down menu. Enter:
Fill in the reader properties.
Fill in the writer properties.
Click Launch task. This runs the task on the Data Flow server's task platform and records a new task execution. You can track the execution progress using the Task Progress Indicator.
When the task is complete, check the status of the job by selecting Jobs executions on the left side of the page.