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

Javascript expression evaluator cannot evaluate _eventdatamap['event.name']

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.7
    • 2.0
    • None
    • Java 6

    Description

      The _eventdatamap is implemented as a Java HashMap - and the Javascript engines (both JDK and JSR223) don't seem to be able to apply the [] operator to a Java Map object.

      An interim workaround when using the Javascript evaluator is to use _eventdatamap.get('event.name').

      For the longer term this anomalous behaviour can either just be documented or a patch that specifically handles _eventdatamap[] can be included in the eval functions

      Attachments

        1. js-src.zip
          22 kB
          Tony Seebregts

        Activity

          People

            Unassigned Unassigned
            tonys Tony Seebregts
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: