Closed Alexhuihui closed 3 years ago
It could be performed something like this:
.withExternal()
.source(State.A)
.event(Event_1)
.target(State.B)
.and()
.withExternal()
.source(State.A)
.event(Event_2)
.target(State.C)
.and()
If you can't change event itself, then one other option is to use choice where you can setup guards to pick path dynamically.
eg: A -> B -> C -> D,A -> C -> D. The difference mentioned above are A -> B and A -> C, judgment condition is event. The spring-statemachine support that?