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

"1 event for multiple transitions" fails silently in SCXML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.2
    • State Machine: SCXML
    • None

    Description

      Reproducer attached. It features a state machine that mainly does the following things:
      1. Send out 2 events: "event" and "event.long".
      2. 2 transitions (log by "Tr1" and "Tr2") will be triggered by "event" and 1 transition (log by "TrLong") will be triggered by "event.log".

      The expected result is:
      1. "Tr1" log will be triggered once
      2. "Tr2" will be ignored since the first one gets defined gets executed
      3. "TrLong" will be triggered once since it is from another event

      The actual result is:
      1. "Tr1" is triggered (expected) but twice (weird, I guess it is because the interval is 1s and exit happens at 3s so that "Tr1" repeats itself within life period).
      2. "Tr2" is not triggered (expected)
      3. "TrLong" is not triggered (weird, it's from another event so shouldn't be affected)

      So we'd better get this sorted out. Also, we may also want to warn user at compile/runtime about "you are connecting 1 events to multiple transitions".

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes