The Workflow YAML specification below has a starting state with a single UI input.
It prompts the user to enter an individual's age.
Once this information has been submitted:
The Workflow transitions into a transform state
Validation is performed
The event returned depends on the age entered
There is one transition and it leads to a success state from the transform state.