commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar (JIRA)" <>
Subject [jira] Commented: (SCXML-71) Javascript expression evaluator cannot evaluate _eventdatamap['']
Date Wed, 30 Apr 2008 17:12:55 GMT


Rahul Akolkar commented on SCXML-71:

I think patching the documentation to mention this is a good start.

Two comments about this:

 * The fact that all derived events are processed in one microstep by the engine is subject
to change. Pending some clarification from the WG, this may change such that each derived
event is processed in its own cycle (at the cost of more cycles). If that happens in some
subsequent major release, then the need for using _eventdatamap will disappear altogether.

 * I think we should avoid patches that specifically handle bits for any expression language
used. There are going to be idiosyncrasies associated with the usage of each EL that users
will have to be aware of and deal with appropriately. We tend to use ELs as-is.

> 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
> 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