commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nestor Urquiza <nest...@yahoo.com>
Subject Re: [scxml] adding an xml to the datamodel
Date Tue, 02 May 2006 17:09:09 GMT
absolutely, thanks!

--- Rahul Akolkar <rahul.akolkar@gmail.com> wrote:

> On 4/30/06, Nestor Urquiza <nestoru@yahoo.com>
> wrote:
> > I finally got it ;-) and you said it already, the
> > datamodel is there in memory holding everything,
> not
> > only the special <datamodel> tag defined in the
> scxml
> > specs but also the context attached to the
> executor.
> >
> > So I was missing two lines in my addDataToModel()
> > below
> >
> > Node node = d.getNode();
> > rootCtx.set("bubp", node);
> >
> <snip/>
> 
> Or (for the sake of the mailing list archives), if
> you want to inject
> data (the earlier approach), replace the two lines
> above by:
> 
> d.setName("bubp");
> scxml.getDatamodel().addData(d);
> 
> i.e. need to explicitly set the name which will be
> used to refer to
> the <data> in expressions later.
> 
> Thanks for filing the related documentation bug
> 39450, will get to it
> in a day or two.
> 
> -Rahul
> 
> 
> > then I will answer my question:
> >
> > Given a settings file:
> >
> > <bubp>
> > <client clientId="mk1" clientPswd="passmk1"
> > appType="SP">
> > ........
> >
> > The condition to test if appType is equal to SP
> using
> > jexl is:
> >
> > <n:if cond="Data(bubp, 'client/@appType') eq
> 'SP'">
> > ........
> >
> > Thanks both of you guys!,
> > Nestor
> >
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
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