|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.rule.FlexRM
public class FlexRM
Generates Action Requests for a Document using the rule system and the specified
RuleTemplate
.
ActionRequestValue
,
RuleTemplate
,
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. |
private Timestamp |
effectiveDate
|
private static org.apache.log4j.Logger |
LOG
|
private static String |
RULE_SELECTOR_PACKAGE
Package in which rule selector implementations live |
private static String |
RULE_SELECTOR_SUFFIX
The class name suffix all rule selectors should have; e.g. |
private int |
selectedRules
An accumulator that keeps track of the number of rules that have been selected over the lifespan of this FlexRM instance. |
Constructor Summary | |
---|---|
FlexRM()
|
|
FlexRM(Timestamp effectiveDate)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger LOG
public static final String DEFAULT_RULE_SELECTOR
private static final String RULE_SELECTOR_PACKAGE
private static final String RULE_SELECTOR_SUFFIX
private final Timestamp effectiveDate
private int selectedRules
Constructor Detail |
---|
public FlexRM()
public FlexRM(Timestamp effectiveDate)
Method Detail |
---|
protected RuleSelector loadRuleSelector(RouteNode routeNodeDef, RouteNodeInstance nodeInstance) throws WorkflowException
WorkflowException
public List<ActionRequestValue> getActionRequests(DocumentRouteHeaderValue routeHeader, RouteNodeInstance nodeInstance, String ruleTemplateName) throws WorkflowException
routeHeader
- the document route headernodeInstance
- the route node instance; this may NOT be nullruleTemplateName
- the rule template
WorkflowException
public List<ActionRequestValue> getActionRequests(DocumentRouteHeaderValue routeHeader, RouteNode routeNodeDef, RouteNodeInstance nodeInstance, String ruleTemplateName) throws WorkflowException
routeHeader
- the document route headerrouteNodeDef
- the RouteNode definition of the route node instancenodeInstance
- the route node instance; this may be null!ruleTemplateName
- the rule template
WorkflowException
public ResponsibleParty resolveResponsibilityId(String responsibilityId)
private void makeActionRequests(ActionRequestFactory arFactory, RouteContext context, RuleBaseValues rule, DocumentRouteHeaderValue routeHeader, ActionRequestValue parentRequest, RuleDelegation ruleDelegation) throws WorkflowException
WorkflowException
public void makeActionRequests(ActionRequestFactory arFactory, List<RuleResponsibility> responsibilities, RouteContext context, RuleBaseValues rule, DocumentRouteHeaderValue routeHeader, ActionRequestValue parentRequest, RuleDelegation ruleDelegation) throws WorkflowException
WorkflowException
private void buildDelegationGraph(ActionRequestFactory arFactory, RouteContext context, RuleBaseValues delegationRule, DocumentRouteHeaderValue routeHeaderValue, ActionRequestValue parentRequest, RuleDelegation ruleDelegation) throws WorkflowException
WorkflowException
private void makeRoleActionRequests(ActionRequestFactory arFactory, RouteContext context, RuleBaseValues rule, RuleResponsibility resp, DocumentRouteHeaderValue routeHeader, ActionRequestValue parentRequest, RuleDelegation ruleDelegation) throws WorkflowException
WorkflowException
private void setRuleAttribute(RoleAttribute roleAttribute, RuleBaseValues rule, String roleAttributeName)
private void makeActionRequest(ActionRequestFactory arFactory, RouteContext context, RuleBaseValues rule, DocumentRouteHeaderValue routeHeader, RuleResponsibility resp, ActionRequestValue parentRequest, RuleDelegation ruleDelegation) throws WorkflowException
WorkflowException
private boolean isDuplicateActionRequestDetected(DocumentRouteHeaderValue routeHeader, RouteNodeInstance nodeInstance, RuleResponsibility resp, String qualifiedRoleName)
public RuleService getRuleService()
public RuleDelegationService getRuleDelegationService()
private ActionRequestService getActionRequestService()
public int getNumberOfMatchingRules()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |