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

Javascript engine (Nashorn) cannot be shared between multiple SCXML instance executions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • None

    Description

      When an SCXML statemachine using the "ecmascript" datamodel invokes (<invoke>) another SCXML statemachine, the Javascript global context must not be shared between them.
      The JSEvaluator therefore cannot (anymore) use a static instance of the Nashorn engine but must be created per JSEvaluator instance.
      SCXML users should therefore need to make sure not to reuse/share a pre-defined JSEvaluator for multiple SCXML statemachine executions!

      Attachments

        Activity

          People

            ate Ate Douma
            ate Ate Douma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: