lutzer / node-red-contrib-finite-statemachine

A finite state machine implementation for node red.
MIT License
16 stars 5 forks source link

FSM emist empty Trigger object when processing SYNC #27

Open TheOriginalMrWolf opened 2 years ago

TheOriginalMrWolf commented 2 years ago

Hi there,

Just noticed that when sending a sync message, FSM emits a message with an empty Trigger object.

Is this by design?

lutzer commented 2 years ago

hey, sorry for the late reply. Yeah. i think it is ok like that. The trigger object should only contain the msg that leads to a transition. sync is not really a transition but just a way to set the state ignoring the transition table.

do you have a scenario that requires that functionality?