complexity theory - When do you favor the use of state machines over linear workflows -
State machines can reduce the complexity of workflows when there are more than one loop and branches or arguments given to workflow This will be an event driven workflow by the "Give Feedback" for replies
In what situation did you choose to use a state machine and what kind of pain did it reduce in terms of time and complexity?
State machines are really good for event-driven code. If you see the reaction of some events If your code is being applied in, you can not use loops and branches. You have to use the state machine instead, feed the events to change the state, and give event handler feedback according to the current state of the machine.
Comments
Post a Comment