Hello axel, and thanks for your time,
1- I need it for logging/debugging so Yakindu's
tracing feature
might help (i should give it a try).
A more important question :
2- An event posted to the statemachine is first handled by the child state & then the parent state (!!!) (or the other way around based on the @Parent/ChildFirstExecution order set in the definition section)
2-1- My assumption was that, should the child state handle the event, the parent state would no further react to the same event in the same RTC.
2-2- this is how SCXML (and its Qt implementation works)
2-3-
BUT in Yakindu statecharts both the child
& the parent react to the event in the same RTC (!!!). Is my
understanding right or have i done sth. wrong?
3-
BTW,
regarding the concrete use-case, in Qt we can log/debug unexpected/unhandled events like:
3-1- Add
a root error handler state
3-2- Add a local transition to this root error handler state: , */ <script>'
3-3- Then in the <script> part we could print out the event's name
3-4- for that we can use the scxmlEvent().name() api in Qt's cppDataModel.
3-5- otherwise unhandled events would be silently ignored (which depending on the case might not be what we want ...)
Thanks again in advance