8000 状态机,能否实现一个condition,来实现不同的状态转换? · Issue #573 · alibaba/COLA · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

状态机,能否实现一个condition,来实现不同的状态转换? #573

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

Open
formingform opened this issue Mar 5, 2025 · 2 comments

Comments

@formingform
Copy link
formingform commented Mar 5, 2025

可以根据同一个condition的返回值(比如true/false)来决定下一个状态是什么?
比如本系统的某订单当前状态是:SUBMIT,通过轮询第三方接口获得最终状态是:成功/失败,决定订单的下一个状态是:SUCCESS / FAILURE。

@tianhuang101
Copy link

现在是不是还是不支持?

可以根据同一个condition的返回值(比如true/false)来决定下一个状态是什么? 比如本系统的某订单当前状态是:SUBMIT,通过轮询第三方接口获得最终状态是:成功/失败,决定订单的下一个状态是:SUCCESS / FAILURE。

@zongqir
Copy link
zongqir commented May 2, 2025

感觉和设计理念不符合呀 本来就只用看事件和状态 现在还得看条件了

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

No branches or pull requests

3 participants
0