Код: Выделить всё
@Override
public void configure(StateMachineTransitionConfigurer transitions)
throws Exception {
transitions
.withExternal()
.source(States.S1).target(States.S2)
.event(Events.E1)
.guard(grd1())
.and()
.withExternal()
.source(States.S2).target(States.S3)
.event(Events.E2)
.guard(grd2())
.and()
.withExternal()
.source(States.S3).target(States.S4)
.event(Events.E3)
.guard(grd1())
.guard(grd2());
}
Есть ли способ запуска, без необходимости определить третью охрану, которая должна была быть комбинацией Grd1 и grd2 ?
Подробнее здесь: https://stackoverflow.com/questions/786 ... atemachine