Do state machine transitions support the concept of a variable (or argument) by which you can pass data from one state to another? I was searching for an answer on this, but I did not get very far.
Of course, I can always use ‘global’ variables visible to the entire state machine.
Problem with that is that I need to carefully clean those variables up, so that leftovers from an earlier transition don’t confuse the next transition (in my app I would have a small table/dictionary with variable number of arguments of a command between states).
If transitions supported the concept of an argument, then I would not have to worry about cleaning it up, as it would be always specific to the last transition. It would also no pollute the list of variables seen on the top state machine level.