On 11/1/06, Nestor Urquiza <[EMAIL PROTECTED]> wrote:
Hi guys,
I have been running now for 6 months my project
without any update from svn. I decided to go for the
release today since I wanted to debug something.

Something weird is happenning with jexl returning
always "false" for any evaluation.

With an example I have in my scxml:
<n:transition event="SendPinReq"
cond="clientProfile.getCurrentApplication().getAppId()
eq '2'" target="aIDLE2UPSENDb"/>

This is used by:
JexlEvaluator#evalCond(final Context ctx, final String
expr)

where
expr="clientProfile.getCurrentApplication().getAppId()
eq '2'"


But that code does not get really evaluated and
JexlEvaluator#evalCond(Context, String) returns false.

<snip/>

Can you post a small (but complete) document (or better, JUnit test
case) that illustrates the issue you're seeing? That will definitely
help. The namespace (below) looks OK.

The other change made while in sandbox was that each state has its own
context (though it can view variables in the parent contexts, like
blocks in Java) -- previously there was a flat context for the entire
document.

Bearing that in mind, are the <var> declarations visible to the
<transition>? If not, you'll need to move them up along the ancestor
heirarchy to a visible location.

-Rahul



I did not give it a try but can it be the namespace
control that I read was recently added? I use <n:...
for all of my statements since I am using a custom
schema based on the one w3c posted ... something like:

<n:scxml version="1.0" initialstate="IDLE"
xmlns:n="http://www.w3.org/2005/07/scxml";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.w3.org/2005/07/scxml
http://pathtoserverhere/scxml.xsd";>

Any help greatly appreciated.

Thanks,

-Nestor


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to