You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Artem Vovk <vo...@googlemail.com> on 2011/06/08 10:31:19 UTC
[scxml] JEXL map in scxml
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?
Cheers Artem
Re: [scxml] JEXL map in scxml
Posted by Artem Vovk <vo...@googlemail.com>.
Ok, thanks!
Cheers Artem
On Jun 11, 2011, at 2:39 PM, Rahul Akolkar wrote:
> On Sat, Jun 11, 2011 at 7:48 AM, Artem Vovk <vo...@googlemail.com> wrote:
>> I have found under your link only some svn-diffs(?) files but not JEXL Evaluator, can u provide a link with JEXL 2.0 Evaluator/Context
>> Thanks :)
>>
> <snip/>
>
> You'd have to study and apply the diff as appropriate. I have what you
> have ATM, at some point it will be included in Commons SCXML.
>
> -Rahul
>
>
>> Cheers Artem
>>
>> On Jun 8, 2011, at 10:40 PM, Rahul Akolkar wrote:
>>
>>> On Wed, Jun 8, 2011 at 4:31 AM, Artem Vovk <vo...@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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: [scxml] JEXL map in scxml
Posted by Rahul Akolkar <ra...@gmail.com>.
On Sat, Jun 11, 2011 at 7:48 AM, Artem Vovk <vo...@googlemail.com> wrote:
> I have found under your link only some svn-diffs(?) files but not JEXL Evaluator, can u provide a link with JEXL 2.0 Evaluator/Context
> Thanks :)
>
<snip/>
You'd have to study and apply the diff as appropriate. I have what you
have ATM, at some point it will be included in Commons SCXML.
-Rahul
> Cheers Artem
>
> On Jun 8, 2011, at 10:40 PM, Rahul Akolkar wrote:
>
>> On Wed, Jun 8, 2011 at 4:31 AM, Artem Vovk <vo...@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
Re: [scxml] JEXL map in scxml
Posted by Artem Vovk <vo...@googlemail.com>.
I have found under your link only some svn-diffs(?) files but not JEXL Evaluator, can u provide a link with JEXL 2.0 Evaluator/Context
Thanks :)
Cheers Artem
On Jun 8, 2011, at 10:40 PM, Rahul Akolkar wrote:
> On Wed, Jun 8, 2011 at 4:31 AM, Artem Vovk <vo...@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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: [scxml] JEXL map in scxml
Posted by Rahul Akolkar <ra...@gmail.com>.
On Wed, Jun 8, 2011 at 4:31 AM, Artem Vovk <vo...@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