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