org.kuali.rice.kew.rule
Class HierarchicalNamedRuleSelector

java.lang.Object
  extended by org.kuali.rice.kew.rule.NamedRuleSelector
      extended by org.kuali.rice.kew.rule.HierarchicalNamedRuleSelector
All Implemented Interfaces:
RuleSelector

public class HierarchicalNamedRuleSelector
extends NamedRuleSelector

Derives the rule name to select based on node instance state configured by a governing HierarchyRoutingNode and the HierarchyRoutingNode name. E.g.:

 <dynamic name="hierarchy">
   <type>org.kuali.rice.kew.engine.node.hierarchyrouting.HierarchyRoutingNode</type>
   <hierarchyProvider>org.kuali.rice.kew.engine.node.hierarchyrouting.SimpleHierarchyProvider</hierarchyProvider>
   <ruleSelector>HierarchicalNamed</ruleSelector>
 </dynamic>
 
If org.kuali.rice.kew.engine.node.hierarchyrouting.SimpleHierarchyProvider supplied stops named 'a', 'b', and 'c', the rules selected would be 'hierarchy-a', 'hierarchy-b', and 'hierarchy-c', respectively.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
 
Fields inherited from class org.kuali.rice.kew.rule.NamedRuleSelector
RULE_NAME_CFG_KEY
 
Constructor Summary
HierarchicalNamedRuleSelector()
           
 
Method Summary
protected  String getName(RouteContext context, DocumentRouteHeaderValue routeHeader, RouteNodeInstance nodeInstance, String selectionCriterion, Timestamp effectiveDate)
           
 
Methods inherited from class org.kuali.rice.kew.rule.NamedRuleSelector
selectRules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HierarchicalNamedRuleSelector

public HierarchicalNamedRuleSelector()
Method Detail

getName

protected String getName(RouteContext context,
                         DocumentRouteHeaderValue routeHeader,
                         RouteNodeInstance nodeInstance,
                         String selectionCriterion,
                         Timestamp effectiveDate)
Overrides:
getName in class NamedRuleSelector
Returns:
the name of the rule that should be selected


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.