Create a new StateTransition specification from one Stateto another (by name).
Public getter for the next State name.
Check for a special next State signalling the end of a job.
Check if the provided status matches the pattern, signalling that the next State
should be executed.
Create a new end state StateTransition specification. This transition explicitly
goes to an end stat
Public getter for the State.
Convenience method to switch the origin and destination of a transition,
creating a new instance.