It is possible to define decision conditions within a transition in the lifecycle.
Go to the configuration of the form’s lifecycle and, on the transition on which you want to set the condition, click on the “user with gear” icon.
Next, it redirects you to the advanced configuration area; in the “Condition” field enter the decision condition in phyton and fill in the “Condition help text” field.
Click save.
In this way, decisions on transitions are conditioned, for example: the passage or blocking from one state to another in the lifecycle on a transition, according to the value of a metadata.