org.kuali.rice.kew.rule
Interface RuleSelector
- All Known Implementing Classes:
- HierarchicalNamedRuleSelector, NamedRuleSelector
public interface RuleSelector
RuleSelector is responsible for selecting the rules to be evaluated for a given rule-based requests node.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
selectRules
List<Rule> selectRules(RouteContext context,
DocumentRouteHeaderValue routeHeader,
RouteNodeInstance nodeInstance,
String selectionCriterion,
Timestamp effectiveDate)
- Returns a list of rules selected given the criteria specified in the arguments.
- Parameters:
context
- the RouteContextrouteHeader
- the DocumentRouteHeaderValue of the current documentnodeInstance
- the current RouteNodeInstance being executedselectionCriterion
- an implementation-specific criterion passed in from the calling contexteffectiveDate
- 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)
- Throws:
WorkflowException
- if anything goes awry...
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.