View Full Version : Java Flow Builder
ramiya
Jul 20th, 2005, 08:01 PM
How to write descision-state using java flow builder?
e.g.
<decision-state id="requiresShipping">
<if test="${flowScope.sale.shipping}" then="enterShippingDetails" else="showCostOverview"/>
</decision-state>
thanks,
Ramiya
curtney
Jul 20th, 2005, 09:27 PM
You will have to instantiate an instance of DecisionState yourself. There is no helper method (addDecisionState) for this. :cry:
DecisionState(Flow flow, java.lang.String id, TransitionCriteria criteria, java.lang.String ifTrueStateId, java.lang.String elseStateId)
Below is a link to the SWF api
http://static.springframework.org/spring-webflow/docs/pr4/api/
Curtney
ramiya
Jul 21st, 2005, 12:32 PM
Won't it be easier & more readable if we get a handle to the flow & session scope variables directly?
Keith Donald
Jul 21st, 2005, 12:50 PM
Not sure what you mean, but you could use a ActionState invoke a Action that makes the decision in java code.
Kerith
ramiya
Jul 21st, 2005, 01:45 PM
Sorry, please ignore my previous question. I forgot that buildStates() must be getting executed at startup not at runtime of the flow.
thanks,
Ramiya
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.