Executes the given transition on the provided value.
A Result containing either the transitioned value or an error
The value to transition
The transition to execute