Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我缺少一些基本的东西。这是我的伪场景:
假设我的流程可以从状态 A 或状态 B 开始。如果流程从状态 A 开始,那么它应该转换到状态 B 触发事件 S。如果流程从状态 B 开始,那么它应该转换到状态 A 触发事件 D。我该怎么做建立这样的配置?
这是该伪场景的伪代码:
if (stateA) { applyStateB() triggerEventS() } else if (stateB) { applyStateA() triggerEventD() }