I made spring batch job but I stuck at somewhere. I'm trying to take argument from user in spring batch XML job, based on that argument I'll run different steps.
For eg. Argument= new or replace Based on "Argument" , different steps will execute If argument=new then step 1 Else If argument=replace then step 2 Else some error
Any lead or help for your side is highly appreciated.
You can create a decider based on a system property to decide which step to use, something like:
Then use this decider in your job definition: