-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preconditions, PostConditions, transitions, onEntry, onExit #20
Comments
Not sure what you want to do in "doTransition". Can you provide an example? |
BeforeEvent gives and opportunity to write guards to protect the event from occurring. DoTransition, perhaps should be called "DoEvent" and should leverage the callback mechanism. Adding one additional callback to support "doEvent" would be good. |
Now I understand! If you want you are more than welcome to submit a PR so we can discuss it further. |
ok, I'll modify my copy of fsm.go and put that functionality into it. Then I'll create a pull request once I get the basics in place |
Sounds good! |
perhaps beforeEvent returning an error cancels the transition? |
Preconditions are handled using "beforeEvent"
Postconditions are handled using "afterEvent"
State support enterState and leaveState where appropriate state logic occurs
I think there needs to support for "doTansition" where the transition logic would occur.
Thoughts?
The text was updated successfully, but these errors were encountered: