轻量级Java有限状态机 Squirrel State Machine 0.3.4 发布,更新内容如下: - 加入对OSGI的支持 // transitions(A->B@A2B=>a2b, A->C@A2C=>a2c, A->D@A2D) will be defined at once builder.transitions().from(State._A).toAmong(State.B, State.C, State.D). onEach(Event.A2B, Event.A2C, Event.A2D).callMethod("a2b|a2c|_"); // transitions(A->_A@A2ANY=>DecisionMaker, _A->A@ANY2A) will be defined at once builder.localTransitions().between(State.A).and(State._A). onMutual(Event.A2ANY, Event.ANY2A).perform( Lists.newArrayList(new DecisionMaker("SomeLocalState"), null) ); - 增加Decision State示例代码 |