org.kuali.rice.kew.rule
Class FlexRM

java.lang.Object
  extended by org.kuali.rice.kew.rule.FlexRM
Direct Known Subclasses:
FlexRMAdapter

public class FlexRM
extends Object

Generates Action Requests for a Document using the rule system and the specified RuleTemplateBo.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
ActionRequestValue, RuleTemplateBo, RuleBaseValues

Field Summary
static String DEFAULT_RULE_SELECTOR
          The default type of rule selector implementation to use if none is explicitly specified for the node.
 
Constructor Summary
FlexRM()
           
FlexRM(Timestamp effectiveDate)
           
 
Method Summary
 List<ActionRequestValue> getActionRequests(DocumentRouteHeaderValue routeHeader, RouteNodeInstance nodeInstance, String ruleTemplateName)
          Generates action requests
 List<ActionRequestValue> getActionRequests(DocumentRouteHeaderValue routeHeader, RouteNode routeNodeDef, RouteNodeInstance nodeInstance, String ruleTemplateName)
          Generates action requests
 int getNumberOfMatchingRules()
           
 RuleService getRuleService()
           
protected  RuleSelector loadRuleSelector(RouteNode routeNodeDef, RouteNodeInstance nodeInstance)
           
 void makeActionRequests(ActionRequestFactory arFactory, List<RuleResponsibility> responsibilities, RouteContext context, Rule rule, DocumentRouteHeaderValue routeHeader, ActionRequestValue parentRequest, RuleDelegation ruleDelegation)
           
 ResponsibleParty resolveResponsibilityId(String responsibilityId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_RULE_SELECTOR

public static final String DEFAULT_RULE_SELECTOR
The default type of rule selector implementation to use if none is explicitly specified for the node.

See Also:
Constant Field Values
Constructor Detail

FlexRM

public FlexRM()

FlexRM

public FlexRM(Timestamp effectiveDate)
Method Detail

loadRuleSelector

protected RuleSelector loadRuleSelector(RouteNode routeNodeDef,
                                        RouteNodeInstance nodeInstance)

getActionRequests

public List<ActionRequestValue> getActionRequests(DocumentRouteHeaderValue routeHeader,
                                                  RouteNodeInstance nodeInstance,
                                                  String ruleTemplateName)
Generates action requests

Parameters:
routeHeader - the document route header
nodeInstance - the route node instance; this may NOT be null
ruleTemplateName - the rule template
Returns:
list of action requests
Throws:
WorkflowException

getActionRequests

public List<ActionRequestValue> getActionRequests(DocumentRouteHeaderValue routeHeader,
                                                  RouteNode routeNodeDef,
                                                  RouteNodeInstance nodeInstance,
                                                  String ruleTemplateName)
Generates action requests

Parameters:
routeHeader - the document route header
routeNodeDef - the RouteNode definition of the route node instance
nodeInstance - the route node instance; this may be null!
ruleTemplateName - the rule template
Returns:
list of action requests
Throws:
WorkflowException

resolveResponsibilityId

public ResponsibleParty resolveResponsibilityId(String responsibilityId)

makeActionRequests

public void makeActionRequests(ActionRequestFactory arFactory,
                               List<RuleResponsibility> responsibilities,
                               RouteContext context,
                               Rule rule,
                               DocumentRouteHeaderValue routeHeader,
                               ActionRequestValue parentRequest,
                               RuleDelegation ruleDelegation)

getRuleService

public RuleService getRuleService()

getNumberOfMatchingRules

public int getNumberOfMatchingRules()


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.