Package org.kuali.rice.kew.rule
Interface RuleSelector
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)
-
Method Summary
Modifier and TypeMethodDescriptionselectRules(RouteContext context, DocumentRouteHeaderValue routeHeader, RouteNodeInstance nodeInstance, String selectionCriterion, Timestamp effectiveDate) Returns a list of rules selected given the criteria specified in the arguments.
-
Method Details
-
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...
-