The code is as follows:
Step step1=createStep (step1 "");
Step step2=createStep (step2 "");
Flow flow1=new FlowBuilder
Flow flow2=new FlowBuilder
Flow [] flowArray={flow1, flow2};
SimpleJobBuilder jobBuilder=new SimpleJobBuilder (new FlowJobBuilder (new jobBuilder (" statJob ")));
Job Job=jobBuilder. Repository (jobRepository) listener (jobExecutionListener). The split (new SimpleAsyncTaskExecutor (jobName)). The add (flowArray.) the end (). The build ();