spring-projects / spring-statemachine

Spring Statemachine is a framework for application developers to use state machine concepts with Spring.
1.54k stars 604 forks source link

How to support multi initial states? #964

Closed HaojunRen closed 3 years ago

HaojunRen commented 3 years ago

I have 4 states A, B, C, D and normal flow is A -> B -> C -> D, but sometime it may be B -> C -> D

So how can spring-statemachine this feature? Thanks

Donquih0te commented 3 years ago

It can be performed with a junction

jvalkeal commented 3 years ago

Indeed that can only be one initial state, choice/junction is a one to pick different path after that initial state.