squirrel icon indicating copy to clipboard operation
squirrel copied to clipboard

support Pseudostate ?

Open huyinmiao opened this issue 7 years ago • 4 comments
trafficstars

like choice state, No need to use multiple transition can to reach different states。

huyinmiao avatar Jul 13 '18 08:07 huyinmiao

https://github.com/hekailiang/squirrel/blob/master/EXAMPLES.md check Decision State Machine

hekailiang avatar Jul 14 '18 03:07 hekailiang

非常感谢提供的指导,这个有点复杂,定义了过多的事件,在实际业务流程中此处只有一个event(譬如一个按钮的点击),由context决定target state。

huyinmiao avatar Jul 16 '18 02:07 huyinmiao

如果仅仅是通过context决定可以通过conditional transition实现

hekailiang avatar Jul 16 '18 04:07 hekailiang

谢谢

huyinmiao avatar Jul 16 '18 05:07 huyinmiao