Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-64518

StateMachine sometimes failed to evaluate system variables in log element.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.9.2
    • XML: SCXML
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jkobus Jarek Kobus
            hanrai911 Lei Fan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes