hekailiang / squirrel

squirrel-foundation is a State Machine library, which provided a lightweight, easy use, type safe and programmable state machine implementation for Java.
http://hekailiang.github.io/squirrel/
Other
2.19k stars 540 forks source link

自动触发事件 #99

Open alan1989 opened 5 years ago

alan1989 commented 5 years ago

考虑到状态机可以作为一种工作流,是否有比如发送一个初始事件,触发状态转换,执行完毕后,自动根据设置的下一个状态继续触发,而不需要人为继续发送事件了?

snowwither commented 4 years ago

请问,这个问题,你是怎么解决的?我也遇到同样的问题

snowwither commented 4 years ago

你好,请问怎么联系你?

hsihua commented 4 years ago

你好,这块我没有使用过了,抱歉

------------------ 原始邮件 ------------------ 发件人: "snowwither"<notifications@github.com>; 发送时间: 2019年10月21日(星期一) 下午5:08 收件人: "hekailiang/squirrel"<squirrel@noreply.github.com>; 抄送: "Subscribed"<subscribed@noreply.github.com>; 主题: Re: [hekailiang/squirrel] 自动触发事件 (#99)

你好,请问怎么联系你?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

DropOfJupiter commented 4 years ago

image 我也是运用状态机来实现工作流流转,用这样的方法自动触发事件