You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Diptendu Dutta <du...@gmail.com> on 2019/07/15 14:51:24 UTC
[SCXML] Support for Commons JEXL in SCXML
Some thing like
<datamodel>
<data id="intent" expr="null"/>
<data id="startState" expr=""Start""/>
</datamodel>
..
<state id="StartBot">
..
<transition target='${startState}' />
</state>
does not work.
*SEVERE: Transition target with ID "${startState}" not found*
However, the spec at
https://commons.apache.org/proper/commons-jexl/reference/syntax.html
mentions
If a variable user valued JEXL is present in the environment - whether as a
local or global variable -, the format
`Hello ${user}`
will evaluate as
Hello JEXL
How can I make this work?
Regards,
Diptendu Dutta
Re: [SCXML] Support for Commons JEXL in SCXML
Posted by Woonsan Ko <wo...@apache.org>.
Hi Diptendu,
I don't think the 'target' attribute is meant to be used with
expressional values. [1]
I guess you might want to try with transition elements with cond
attribute, which is expressional [1], instead.
For example,
<transition target="Start" cond="user != null" />
<transition target="SomethingElse" cond="user == null" />
Regards,
Woonsan
[1] https://www.w3.org/TR/scxml/#transition
On Mon, Jul 15, 2019 at 10:51 AM Diptendu Dutta
<du...@gmail.com> wrote:
>
> Some thing like
>
> <datamodel>
> <data id="intent" expr="null"/>
> <data id="startState" expr=""Start""/>
> </datamodel>
> ..
> <state id="StartBot">
> ..
> <transition target='${startState}' />
> </state>
>
> does not work.
>
> *SEVERE: Transition target with ID "${startState}" not found*
>
> However, the spec at
> https://commons.apache.org/proper/commons-jexl/reference/syntax.html
> mentions
>
> If a variable user valued JEXL is present in the environment - whether as a
> local or global variable -, the format
>
> `Hello ${user}`
>
> will evaluate as
>
> Hello JEXL
>
> How can I make this work?
>
> Regards,
>
> Diptendu Dutta
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org