im developing a Project using Spring Batch and JavaConfig (no XML). I am creating Jobs using an Autowired jobBuilderFactory.
is it somehow possible to set the Incrementer for the Factory globally ?
return jobBuilderFactory.get("jobName").incrementer(new RunIdIncrementer()).start(stepOne()).next(lastStep()).build();
sorry if this is a dump question but i am new to Spring Batch and did not find a working solution.
return jobs.get("myJob").start(step1).next(step2).build();
And it seems as if there is no incrementer set (sorry if i am wrong). We will only use the basic "RunIdIncrementer" in the whole batch Project and thats why i wanted to set it globally for all jobs. We trigger the jobs via Cron + Rest (with dummy parameters) – eckad158