Skip to content
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

How can I use callback to check before status transition? #69

Open
luoxi001713 opened this issue Jun 11, 2021 · 2 comments
Open

How can I use callback to check before status transition? #69

luoxi001713 opened this issue Jun 11, 2021 · 2 comments
Labels

Comments

@luoxi001713
Copy link

luoxi001713 commented Jun 11, 2021

Scenario:
Status A - > status B, I want to check if a field is valid before transition.

I know there is a before_EVENT, but I don't know how to control don't let the status from A to B in this function.

Thanks

@suerta-git
Copy link

I saw that there is a Cancel() method in event object you can call it in callbacks

@maxekman
Copy link
Member

@luoxi001713 Is your question answered by @suerta-git?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants