org.kuali.rice.krms.impl.validation
Class ValidationRule
java.lang.Object
   org.kuali.rice.krms.framework.engine.BasicRule
org.kuali.rice.krms.framework.engine.BasicRule
       org.kuali.rice.krms.impl.validation.ValidationRule
org.kuali.rice.krms.impl.validation.ValidationRule
- All Implemented Interfaces: 
- Rule
- public class ValidationRule 
- extends BasicRule
A Rule that executes a Action when the Proposition is false,
 as opposed to BasicRule which executes its action when the proposition is true.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
 
| Method Summary | 
| protected  boolean | shouldExecuteAction(boolean ruleExecutionResult)Valid Validation Rules execute when the ruleExecutionResult is false.
 | 
 
 
 
ValidationRule
public ValidationRule(ValidationRuleType type,
                      String name,
                      Proposition proposition,
                      List<Action> actions)
- Parameters:
- type- ValidationRuleType
- name- Rule name
- proposition- Proposition
- actions- Rule Actions
- Throws:
- IllegalArgumentException- if type is null
shouldExecuteAction
protected boolean shouldExecuteAction(boolean ruleExecutionResult)
- Valid Validation Rules execute when the ruleExecutionResult is false.
 Invalid Validation Rules execute when the ruleExecutionResult is true.
 
- 
- Overrides:
- shouldExecuteActionin class- BasicRule
 
- 
- Parameters:
- ruleExecutionResult- result of the rules execution
- Returns:
- should the actions be executed
 
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.