'Using JobExecutionDecider in Spring Batch for multiple conditions

I am new to Spring.I have a properties file and based on it I have to execute Steps based on these conditions. I figured out that I have to use JobExecutionDecider by following this link. But most of the examples(I referred other links also) I have seen are like like this:

if(condition)
  execute Step 1
else
    execute Step 2

But my requriement is like below

//Properties File
Step 1 = true
Step 2 = false
Step 3 = true
if(Step 1)
  execute Step1
if(Step 2)
  execute Step 2
if(Step 3)
  execute Step 3

I did not find any article which achieves this kind of behaviour. How can I translate this requirement to code?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source