【发布时间】:2017-02-17 01:20:27
【问题描述】:
配置代码
states
.withStates()
.initial(OrderState.Create)
.state(OrderState.Create, startAction)
.state(OrderState.Payed, paymentAction)
.states(EnumSet.allOf(OrderState.class));
运行代码
stateMachine
.getStateMachineAccessor()
.doWithAllRegions(access -> {
access.resetStateMachine(new DefaultStateMachineContext<> (OrderState.Payed, null, null, null, null));
});
stateMachine.start();
paymentAction 启动时不触发, 如何触发
【问题讨论】: