|
From: Keith D. <ke...@in...> - 2005-04-08 14:17:59
|
FYI if this wasn't posted here already: the below feature is the result of
Erwin, Rob, and I's "tri-programming" over skype yesterday. Steven, this is
an example of conditional transitions expressed in OGNL, to help with your
article.
Keith
-----Original Message-----
From: Erwin Vervaet [mailto:erw...@er...]
Sent: Friday, April 08, 2005 3:09 AM
To: Keith Donald; Rob Harrop
Subject: OGNL sample
Hey guys,
I just added OGNL based conditional transitions to our sellitem sample app:
<action-state id="bindAndValidateCategory">
<action bean="sellItemAction" method="bindAndValidate"/>
<transition on="${lastEvent.id == 'success' and flowScope.sale.shipping}"
to="enterShippingDetails"/>
<transition on="${lastEvent.id == 'success' and
!flowScope.sale.shipping}" to="showCostOverview"/>
<transition on="error" to="enterCategory"/>
</action-state>
Sweet! I tested this and it's working nicely.
Erwin Vervaet
erw...@er...
|
|
From: Erwin V. <erw...@er...> - 2005-04-08 14:26:53
|
should that be "threesome-programming"? ;)
Erwin Vervaet
erw...@er...
----- Original Message -----
From: "Keith Donald" <ke...@in...>
To: <spr...@li...>
Sent: Friday, April 08, 2005 4:17 PM
Subject: [Springframework-developer] FW: OGNL sample
> FYI if this wasn't posted here already: the below feature is the result of
> Erwin, Rob, and I's "tri-programming" over skype yesterday. Steven, this
> is
> an example of conditional transitions expressed in OGNL, to help with your
> article.
>
> Keith
>
> -----Original Message-----
> From: Erwin Vervaet [mailto:erw...@er...]
> Sent: Friday, April 08, 2005 3:09 AM
> To: Keith Donald; Rob Harrop
> Subject: OGNL sample
>
> Hey guys,
>
> I just added OGNL based conditional transitions to our sellitem sample
> app:
>
> <action-state id="bindAndValidateCategory">
> <action bean="sellItemAction" method="bindAndValidate"/>
> <transition on="${lastEvent.id == 'success' and
> flowScope.sale.shipping}"
>
> to="enterShippingDetails"/>
> <transition on="${lastEvent.id == 'success' and
> !flowScope.sale.shipping}" to="showCostOverview"/>
> <transition on="error" to="enterCategory"/>
> </action-state>
>
> Sweet! I tested this and it's working nicely.
>
> Erwin Vervaet
> erw...@er...
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
|
|
From: Steven D. <ste...@gm...> - 2005-04-08 14:37:22
|
Thanks guys.
I suppose the "lastEvent" and "flowScope" variables are always
available on the OGNL value stack. I furthermore suppose that "scope"
is a key in the flow request context and that "shipping" is a boolean
property on the instance associated with said key.
Cheers
Steven
On Apr 8, 2005 4:29 PM, Erwin Vervaet <erw...@er...> wrote:
> should that be "threesome-programming"? ;)
>
> Erwin Vervaet
> erw...@er...
> ----- Original Message -----
> From: "Keith Donald" <ke...@in...>
> To: <spr...@li...>
> Sent: Friday, April 08, 2005 4:17 PM
> Subject: [Springframework-developer] FW: OGNL sample
>
> > FYI if this wasn't posted here already: the below feature is the result of
> > Erwin, Rob, and I's "tri-programming" over skype yesterday. Steven, this
> > is
> > an example of conditional transitions expressed in OGNL, to help with your
> > article.
> >
> > Keith
> >
> > -----Original Message-----
> > From: Erwin Vervaet [mailto:erw...@er...]
> > Sent: Friday, April 08, 2005 3:09 AM
> > To: Keith Donald; Rob Harrop
> > Subject: OGNL sample
> >
> > Hey guys,
> >
> > I just added OGNL based conditional transitions to our sellitem sample
> > app:
> >
> > <action-state id="bindAndValidateCategory">
> > <action bean="sellItemAction" method="bindAndValidate"/>
> > <transition on="${lastEvent.id == 'success' and
> > flowScope.sale.shipping}"
> >
> > to="enterShippingDetails"/>
> > <transition on="${lastEvent.id == 'success' and
> > !flowScope.sale.shipping}" to="showCostOverview"/>
> > <transition on="error" to="enterCategory"/>
> > </action-state>
> >
> > Sweet! I tested this and it's working nicely.
> >
> > Erwin Vervaet
> > erw...@er...
> >
> >
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > _______________________________________________
> > Springframework-developer mailing list
> > Spr...@li...
> > https://lists.sourceforge.net/lists/listinfo/springframework-developer
> >
> >
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
--
"If you want to be a different fish, you gotta jump out of the school."
-- Captain Beefheart
|
|
From: Keith D. <ke...@in...> - 2005-04-08 14:43:01
|
Yes - everything is accessible via the RequestContext, the root object on
the value stack. So lastEvent is a prop, flowScope is a prop, "sale" is a
bean stored in flowScope, Boolean "shipping" is a prop on that bean. The
"on" condition must be a boolean expression.
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...] On Behalf Of
Steven Devijver
Sent: Friday, April 08, 2005 10:37 AM
To: spr...@li...
Subject: Re: [Springframework-developer] FW: OGNL sample
Thanks guys.
I suppose the "lastEvent" and "flowScope" variables are always
available on the OGNL value stack. I furthermore suppose that "scope"
is a key in the flow request context and that "shipping" is a boolean
property on the instance associated with said key.
Cheers
Steven
On Apr 8, 2005 4:29 PM, Erwin Vervaet <erw...@er...> wrote:
> should that be "threesome-programming"? ;)
>
> Erwin Vervaet
> erw...@er...
> ----- Original Message -----
> From: "Keith Donald" <ke...@in...>
> To: <spr...@li...>
> Sent: Friday, April 08, 2005 4:17 PM
> Subject: [Springframework-developer] FW: OGNL sample
>
> > FYI if this wasn't posted here already: the below feature is the result
of
> > Erwin, Rob, and I's "tri-programming" over skype yesterday. Steven,
this
> > is
> > an example of conditional transitions expressed in OGNL, to help with
your
> > article.
> >
> > Keith
> >
> > -----Original Message-----
> > From: Erwin Vervaet [mailto:erw...@er...]
> > Sent: Friday, April 08, 2005 3:09 AM
> > To: Keith Donald; Rob Harrop
> > Subject: OGNL sample
> >
> > Hey guys,
> >
> > I just added OGNL based conditional transitions to our sellitem sample
> > app:
> >
> > <action-state id="bindAndValidateCategory">
> > <action bean="sellItemAction" method="bindAndValidate"/>
> > <transition on="${lastEvent.id == 'success' and
> > flowScope.sale.shipping}"
> >
> > to="enterShippingDetails"/>
> > <transition on="${lastEvent.id == 'success' and
> > !flowScope.sale.shipping}" to="showCostOverview"/>
> > <transition on="error" to="enterCategory"/>
> > </action-state>
> >
> > Sweet! I tested this and it's working nicely.
> >
> > Erwin Vervaet
> > erw...@er...
> >
> >
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > _______________________________________________
> > Springframework-developer mailing list
> > Spr...@li...
> > https://lists.sourceforge.net/lists/listinfo/springframework-developer
> >
> >
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
--
"If you want to be a different fish, you gotta jump out of the school."
-- Captain Beefheart
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Steven D. <ste...@gm...> - 2005-04-08 14:46:54
|
groovy.
On Apr 8, 2005 4:42 PM, Keith Donald <ke...@in...> wrote:
> Yes - everything is accessible via the RequestContext, the root object on
> the value stack. So lastEvent is a prop, flowScope is a prop, "sale" is a
> bean stored in flowScope, Boolean "shipping" is a prop on that bean. The
> "on" condition must be a boolean expression.
>
> -----Original Message-----
> From: spr...@li...
> [mailto:spr...@li...] On Behalf Of
> Steven Devijver
> Sent: Friday, April 08, 2005 10:37 AM
> To: spr...@li...
> Subject: Re: [Springframework-developer] FW: OGNL sample
>
> Thanks guys.
>
> I suppose the "lastEvent" and "flowScope" variables are always
> available on the OGNL value stack. I furthermore suppose that "scope"
> is a key in the flow request context and that "shipping" is a boolean
> property on the instance associated with said key.
>
> Cheers
>
> Steven
>
> On Apr 8, 2005 4:29 PM, Erwin Vervaet <erw...@er...> wrote:
> > should that be "threesome-programming"? ;)
> >
> > Erwin Vervaet
> > erw...@er...
> > ----- Original Message -----
> > From: "Keith Donald" <ke...@in...>
> > To: <spr...@li...>
> > Sent: Friday, April 08, 2005 4:17 PM
> > Subject: [Springframework-developer] FW: OGNL sample
> >
> > > FYI if this wasn't posted here already: the below feature is the result
> of
> > > Erwin, Rob, and I's "tri-programming" over skype yesterday. Steven,
> this
> > > is
> > > an example of conditional transitions expressed in OGNL, to help with
> your
> > > article.
> > >
> > > Keith
> > >
> > > -----Original Message-----
> > > From: Erwin Vervaet [mailto:erw...@er...]
> > > Sent: Friday, April 08, 2005 3:09 AM
> > > To: Keith Donald; Rob Harrop
> > > Subject: OGNL sample
> > >
> > > Hey guys,
> > >
> > > I just added OGNL based conditional transitions to our sellitem sample
> > > app:
> > >
> > > <action-state id="bindAndValidateCategory">
> > > <action bean="sellItemAction" method="bindAndValidate"/>
> > > <transition on="${lastEvent.id == 'success' and
> > > flowScope.sale.shipping}"
> > >
> > > to="enterShippingDetails"/>
> > > <transition on="${lastEvent.id == 'success' and
> > > !flowScope.sale.shipping}" to="showCostOverview"/>
> > > <transition on="error" to="enterCategory"/>
> > > </action-state>
> > >
> > > Sweet! I tested this and it's working nicely.
> > >
> > > Erwin Vervaet
> > > erw...@er...
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > SF email is sponsored by - The IT Product Guide
> > > Read honest & candid reviews on hundreds of IT Products from real users.
> > > Discover which products truly live up to the hype. Start reading now.
> > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > > _______________________________________________
> > > Springframework-developer mailing list
> > > Spr...@li...
> > > https://lists.sourceforge.net/lists/listinfo/springframework-developer
> > >
> > >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > _______________________________________________
> > Springframework-developer mailing list
> > Spr...@li...
> > https://lists.sourceforge.net/lists/listinfo/springframework-developer
> >
> >
>
> --
> "If you want to be a different fish, you gotta jump out of the school."
> -- Captain Beefheart
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
--
"If you want to be a different fish, you gotta jump out of the school."
-- Captain Beefheart
|