Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
5.9.2
-
None
-
Desktop_Qt_5_9_2_MSVC2017_64bit-Debug
Windows 10
Description
In TrafficLight example, add following code into a transition:
<log label="Event name" expr="_event.name"/>
Then your code should looks like this:
<state id="greenGoingRed"> <onentry> <send event="goRed" delay="1s"/> </onentry> <transition event="goRed" target="red"> <log label="Event name" expr="_event.name"/> </transition> </state>
Run the example, then you will got this:
scxml.statemachine: "Event name" : "_event.name"
System variable event.name failed to be evaluated. And if you try any other system variable (_name, or any others) you will got the same result.