org.kuali.rice.kew.rule
Class MetaRuleExpression

java.lang.Object
  extended by org.kuali.rice.kew.rule.BSFRuleExpression
      extended by org.kuali.rice.kew.rule.AccumulatingBSFRuleExpression
          extended by org.kuali.rice.kew.rule.MetaRuleExpression
All Implemented Interfaces:
RuleExpression

public class MetaRuleExpression
extends AccumulatingBSFRuleExpression

Expression implementation for "meta rules". A "meta rule" consists of a sequence of subordinate rule evaluations each processed according to an associated modifier:

next
proceed with rule evaluation
true
if this rule evaluates to true, then return the responsibilities associated with the rule
false
if this rule evaluates to false, then return the responsibilities associated with the rule
E.g.
bizRule1: next; bizRule2: true; bizRule3: false

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.kew.rule.BSFRuleExpression
BSFRuleExpression.WorkflowRuleAPI
 
Constructor Summary
MetaRuleExpression()
           
 
Method Summary
 RuleExpressionResult evaluate(Rule rule, RouteContext context)
          Performs an evaluation and returns a list of 0 or more RuleResponsibilityBos to which to dispatch action requests
 
Methods inherited from class org.kuali.rice.kew.rule.AccumulatingBSFRuleExpression
declareBeans
 
Methods inherited from class org.kuali.rice.kew.rule.BSFRuleExpression
parseLang
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaRuleExpression

public MetaRuleExpression()
Method Detail

evaluate

public RuleExpressionResult evaluate(Rule rule,
                                     RouteContext context)
Description copied from interface: RuleExpression
Performs an evaluation and returns a list of 0 or more RuleResponsibilityBos to which to dispatch action requests

Specified by:
evaluate in interface RuleExpression
Overrides:
evaluate in class BSFRuleExpression
Parameters:
rule - the rule that this rule expression applies to
context - the RouteContext under which the expression is being evaluated
Returns:
the result of the rule evaluation


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