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] release or current svn code not backguard compatible
Date Thu, 02 Nov 2006 16:43:03 GMT
On 11/2/06, Nestor Urquiza <nestoru@yahoo.com> wrote:
> That could be the issue, I am inserting in the context
> the objects I want to expose to scxml and so if now
> the context depends on the state I must update the
> state context with my unique per session one.
>
<snip/>

You would be inserting those in the root context? Thats available to
all states. Sorry, I'm not sure what snippet you want (below). What
will be faster is an example that I can work with (sort of a "before"
so we can have an "after"). Thanks.

-Rahul


> You will understand that for a WEB Application (I am
> using SCXML as Controller) I need my session to be
> unique and I take care of areas of course to keep a
> namespace aware architecture.
>
> Now the question is could you paste here a snippet of
> code that will make the trick of exporting my unique
> context to each state the application reaches?
>
> Thanks,
>
> -Nestor
>
> --- Rahul Akolkar <rahul.akolkar@gmail.com> wrote:
>
> > On 11/1/06, Nestor Urquiza <nestoru@yahoo.com>
> > 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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message