Implements JSR-352 specific logic around the execution of a flow. Specifically, this
Flow implementation will attempt to find the next state based on the provided
exit status. If none is found (the exit status isn't mapped), it will attempt to
resolve the next state basing it on the last step's batch status. Only if both
attempts fail, the flow will fail due to the inability to find the next state.