Hello,
I'm using the StateMachine library to handle state transitions, but I want to streamline the process by transitioning directly to a target state instead of firing an event name. Ideally, I would specify a target state (e.g., GoToState("Approved")), and the state machine would check if there’s a valid transition path from the current state to that target state. If the transition is allowed, it should proceed; if not, it should prevent the transition.
To summarize, I'm looking to:
Specify a target state directly instead of firing an event.
Have the state machine validate if a transition to the target state exists before moving.
Is there a way to configure StateMachine to support this state-based approach rather than relying on event names?
Thank you for any help!