commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Akolkar <rahul.akol...@gmail.com>
Subject Re: [scxml] JEXL map in scxml
Date Wed, 08 Jun 2011 20:40:14 GMT
On Wed, Jun 8, 2011 at 4:31 AM, Artem Vovk <vovk.artem@googlemail.com> wrote:
> Hi,
>
>   I'm trying to create and send JEXL map, I wrote:
>
>  <cs:var name="one" expr="{ 'test' : 2}"/>
>  <send event="'event1'" target="receiver" targetType="x-ajax"
> namelist="one"/>
>
>  But SCXML interpreter shows an exception :
>  WARNUNG: EXPRESSION_ERROR (eval('{ 'test' : 2}'):Lexical error at line 1,
> column 10.  Encountered: ":" (58), after : ""):
>  What is wrong with this syntax?
>
<snip/>

Its not JEXL 1.x syntax, which is default. JEXL 2.x syntax will
require a suitable Evaluator/Context implementation. You can either
provide one yourself or try the one attached to this ticket [1].

-Rahul

[1] https://issues.apache.org/jira/browse/SCXML-114

>
> Cheers Artem
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message