A fork step in Gloop is very similar to a Java
switch statement. When a
fork step is executed, Gloop will evaluate the
Expression property, and then find the
child step whose
Label is equal to the output of the expression.
If the output is
null, it will find a child with the
If no matching child is found, it will try and execute the child whose
If still no child matches, no children will be executed.
All children steps of a fork step are treated similarly to a Java
case block with a
In other words, if a matching child is found for the expression output, only that child will be executed.
myValue is a
String, and the expression language is Groovy,
the following lines will be executed with the following inputs: