commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Seebregts (JIRA)" <>
Subject [jira] Commented: (SCXML-71) Javascript expression evaluator cannot evaluate _eventdatamap['']
Date Thu, 08 May 2008 16:11:03 GMT


Tony Seebregts commented on SCXML-71:

I've added a (fairly minimal) comment in the javadoc comments and also added
a sample to the end of the example-01.xml. 

The attached file has the all the relevant files I found in the J5 branch but the only ones
that have changed are:

- (added comment)
- (added MapTest inner class to support the _eventdatamap example)
- example-01.xml (added the maptest example at the bottom)

Hope that all helps :-) 

> Javascript expression evaluator cannot evaluate _eventdatamap['']
> ---------------------------------------------------------------------------
>                 Key: SCXML-71
>                 URL:
>             Project: Commons SCXML
>          Issue Type: Bug
>    Affects Versions: 0.7
>         Environment: Java 6
>            Reporter: Tony Seebregts
>            Priority: Minor
>             Fix For: 1.0
> 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('').

> 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

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message