node-red-contrib-state-machine icon indicating copy to clipboard operation
node-red-contrib-state-machine copied to clipboard

State-based outputs and message routing

Open squirrel289 opened this issue 6 years ago • 0 comments

In using the state machine node I found that I was always creating a switch node to handle each state differently. Rather than continuing this repetitive and error-prone practice (the switch states were an exact copy of the SM states and text needed to be updated in both if the name of the state changed), I incorporated the concept of state-based message routing into the state machine node itself. Feel free to change text as you see appropriate.

squirrel289 avatar May 07 '18 17:05 squirrel289