Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-13409

scxml: Do not modify state in on-entry

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • High
    • Resolution: Fixed
    • None
    • 14.3.0, 100.3.0
    • repository
    • None

    Description

      Quote from mailing thread with adouma and aschrijvers
      "The oneentry/onexit elements should not be
      used to change (persistent) state. They are meant to be used to
      adjust the context of the state machine according to the state
      being entered/exited. Entering/exiting a state is the result of a
      event (or explicit) transition, e.g. something 'already happened'.

      Also note that state onentry also/always is triggered during the
      initialization of the state machine to reflect the current 'state',
      e.g. without any event/transition.
      ...

      Changing persistent state should only be done through/within an event
      (or eventless) transition (element)."

      Attachments

        Issue Links

          Activity

            People

              ntrajkovski Nikola Trajkovski
              mrop Michiel Rop
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: