Defining conditions on transitions
In the last chapter, we have defined various transitions for the steps. We can also define conditions on these transitions such that one particular transition holds true in some situation. Thus, there can be many transitions from one step to the others, but depending on which transition is true we can proceed to the next step.
For defining the condition on the transitions, we can use the Edit expression... option to define a groovy script which returns a true
or false
Boolean value depending on the conditions. If the value returned is true
, the transition becomes active. We have already seen how to return a Boolean value from a groovy expression.