Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition actions should optionally allow continuing running other actions after an action failure [SWF-515] #206

Open
spring-operator opened this issue Mar 10, 2008 · 0 comments

Comments

@spring-operator
Copy link
Contributor

spring-operator commented Mar 10, 2008

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant