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 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 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)
      Throws:
      WorkflowException - if anything goes awry...