org.kuali.rice.kew.rule
Class NamedRuleSelector
java.lang.Object
   org.kuali.rice.kew.rule.NamedRuleSelector
org.kuali.rice.kew.rule.NamedRuleSelector
- All Implemented Interfaces: 
- RuleSelector
- Direct Known Subclasses: 
- HierarchicalNamedRuleSelector
- public class NamedRuleSelector 
- extends Object- implements RuleSelector
Rule selector that select a rule based on configured rule name
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
| Field Summary | 
| static String | RULE_NAME_CFG_KEYThe route node config param consulted to determine the rule name to select
 | 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RULE_NAME_CFG_KEY
public static final String RULE_NAME_CFG_KEY
- The route node config param consulted to determine the rule name to select
 
- See Also:
- Constant Field Values
 
NamedRuleSelector
public NamedRuleSelector()
getName
protected String getName(RouteContext context,
                         DocumentRouteHeaderValue routeHeader,
                         RouteNodeInstance nodeInstance,
                         String selectionCriterion,
                         Timestamp effectiveDate)
- 
 
- 
- Returns:
- the name of the rule that should be selected
 
selectRules
public List<Rule> selectRules(RouteContext context,
                              DocumentRouteHeaderValue routeHeader,
                              RouteNodeInstance nodeInstance,
                              String selectionCriterion,
                              Timestamp effectiveDate)
- Description copied from interface: RuleSelector
- Returns a list of rules selected given the criteria specified in the arguments.
 
- 
- Specified by:
- selectRulesin interface- RuleSelector
 
- 
- Parameters:
- context- the RouteContext
- routeHeader- the DocumentRouteHeaderValue of the current document
- nodeInstance- the current RouteNodeInstance being executed
- selectionCriterion- an implementation-specific criterion passed in from the calling context
- effectiveDate- an optional criterion that indicates that the rules selected should be active on the given date
- Returns:
- a list of applicable rules, if any (null or empty list otherwise)
 
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.