Configure the batch job, and start the two parallel task Processdata,synctabletask, performing a third task Job:playdurationtask.
The XML configuration is as follows:
<JobID= "Stattask"xmlns= "Http://xmlns.jcp.org/xml/ns/javaee"version= "1.0"> <Properties> < Propertyname= "TargetDate"value= "20001010" /> < Propertyname= "Bitcoinfile"value= "Bitcoins.txt" /> </Properties> <SplitID= "Split1"Next= "Processdatabase"> <FlowID= "Flow1"> <StepID= "ProcessData"> <Batchletref= "Playprocesslogtask"> <Properties> < Propertyname= "FirstItem"value= "#{partitionplan[' FirstItem '}" /> < Propertyname= "NumItems"value= "#{partitionplan[' NumItems '}" /> </Properties> </Batchlet> <Partition> <Mapperref= "Playprocesslogmapper" /> </Partition> </Step> </Flow> <FlowID= "Flow2"> <StepID= "Synctabletask"> <Batchletref= "Synctabletask"> </Batchlet> </Step> </Flow> </Split> <StepID= "Processdatabase"> <Batchletref= "Playdurationtask"> </Batchlet> </Step></Job>
Java EE wildfly batch job