We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
研究了2天,总算能跑起来,也可以满足很多我的需求了。 大概想问的问题有2个: 1.哪里可以设置状态机的过期时间呢,因为本身做的是个web项目,大部分event由api触发,生成一个状态机,触发一个事件,然后就没事了。。。 2.就是标题的问题,callMethod目前都放在OrderStateMachine下面,但是这样所有的订单状态转换逻辑放在这个类下面太不科学了,自己新建个orderStateService用于处理订单的状态转换,然后把orderStateService注入进OrderStateMachine,但是这样感觉多包了一层,很鸡肋。想问下作者可不可以加个注解然后让callMethod去调用其他类里的方法。。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
研究了2天,总算能跑起来,也可以满足很多我的需求了。
大概想问的问题有2个:
1.哪里可以设置状态机的过期时间呢,因为本身做的是个web项目,大部分event由api触发,生成一个状态机,触发一个事件,然后就没事了。。。
2.就是标题的问题,callMethod目前都放在OrderStateMachine下面,但是这样所有的订单状态转换逻辑放在这个类下面太不科学了,自己新建个orderStateService用于处理订单的状态转换,然后把orderStateService注入进OrderStateMachine,但是这样感觉多包了一层,很鸡肋。想问下作者可不可以加个注解然后让callMethod去调用其他类里的方法。。
The text was updated successfully, but these errors were encountered: