Uploaded image for project: 'Commons SCXML'
  1. Commons SCXML
  2. SCXML-19

Need to resume a state machine from a specified state

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5
    • 0.6
    • None
    • Win XP, JDK 1.5

    Description

      I want a feature that does the following:
      1. Consider a state transition from S1 -> S2 -> S3 -> S4, the initial state being "S1".
      2. Instantiate a state machine and set its initial state to "S3"
      3. Basically, I am resuming the state machine to start from state "S3", and I don't want the engine to invoke the OnEntry executable content applicable to state "S3". I also want to prevent any EntryListeners from being executed on resuming the state machine from state "S3". Here the assumption is that the state machine had earlier run from "S1" to "S3", and at a later point in time I want to resume the state machine from "S3".

      Currently, the OnEntry and EntryListeners are executed when I set the new initial start state in the state machine and do a engine.go()

      I have attached a modifed AbstractStateMachine.java where I attempted to disable the EntryListeners on a resume.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mrao Raj Rao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: