fsm
fsm copied to clipboard
add NewFSMFromTemplate
suppor create from template
template := `
1=New
2=Ready
3=Waiting
4=Running
5=Terminated
Admitted:1->2
Dispatch:2 -> 4
Interrupt:4->2
InputOutputoreventwait:4->3
InputOutputoreventcompletion:3->2
Exit:4->5
`
format as follow:
//for example:
action1:state1 -> state2
action2:state12-> state3
action3:state13-> state2
Great idea! Is there some accepted syntax/DSL for defining state machines that could be used instead?
Please take some time to answer the question from July.