Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-17378

SCXML Designer should display onentry/onexit events

    XMLWordPrintable

Details

    • 2d1b8dbc2 (master)

    Description

      Hallo,

      I have recently used the new visual SCXML designer inside QtCreator. At first I have to say I like it very much. The designer behavious very smooth und I like the fact that it edits an SCXML document directly. After working a while with the editor I recognized that the editor does not show onentry and onexit events in the editor. In fact it is sometimes rather difficult (in larger state charts) to keep track of the events since they are not visualized by the editor. At the moment I have opened the SCXML document in a separate text editor to keep track of the events. I think it would be a very nice addition to the SCXML editor for a future version. For better understanding I have made an example.

      Consider the following scxml document:

      <?xml version="1.0" encoding="UTF-8"?>
      <scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" binding="early" qt:editorversion="4.1.82" xmlns:qt="http://www.qt.io/2015/02/scxml-ext">
          <state id="Some State">
              <onentry>
                  <send event="sayHello"/>
              </onentry>
              <onexit>
                  <send event="sayGoodbye"/>
              </onexit>
          </state>
      </scxml>
      

      The state machine described above is visualized like that:

      As far as I see it, it could be very helpful if the SCXML designer would also display the events inside the state box, like other UML statechart editors do. In my imagination it could look like that:

      The notation shown above corresponds to the UML notation seen in other editors like Enterprise Architect.

      Attachments

        1. State-with-events.png
          12 kB
          Wolf Bublitz
        2. State.PNG
          2 kB
          Wolf Bublitz
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            artem.sokolovskii Artem Sokolovskii
            derhandwerk Wolf Bublitz
            Votes:
            4 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes