@hive-command/state-machine
v1.4.15-alpha.59
Published
## Usage
Downloads
121
Readme
Command State Machine
Usage
import FSM, {CommandStateMachineMode} from '@hive-command/state-machine';
const fsm = new FSM({
processes: [
{
id: 'first',
name: 'First Flow',
nodes: [{
}],
edges: [{
}]
}
]
})
fsm.changeMode(CommandStateMachineMode.AUTO)
fsm.start()
fsm.stop()
fsm.changeMode(CommandStateMachineMode.MANUAL)
fsm.runFlow('first')
fsm.stopFlow('first')