spring-webflow
spring-webflow copied to clipboard
Transition actions should optionally allow continuing running other actions after an action failure [SWF-515]
Keith Garry Boyce opened SWF-515 and commented
I call a series of validators on submit.. I want the error messages from all the validators so even though earlier validator failed i still want to continue with the other validators to all errors are shown.
In TransitionCriteriaChain:
public boolean test(RequestContext context) { Iterator it = criteriaChain.iterator(); while (it.hasNext()) { TransitionCriteria criteria = (TransitionCriteria) it.next(); if (!criteria.test(context)) { return false; } } return true; }
if any fail then other actions do not run..
Either flow definition should be able to make a grouping of the actions to be treated as one action with the result being the union of the actions, or an special event that either ends the chain or continues, or at a minimum an attribute on transition which defines behaviour.
Affects: 2.0 M3
Issue Links:
- #114 Enhance XML-defined action chains to support equivalent CompositeAction functionality