org.kuali.rice.kew.rule
Class RuleExpressionResult

java.lang.Object
  extended by org.kuali.rice.kew.rule.RuleExpressionResult

public class RuleExpressionResult
extends Object

Result of a RuleExpression evaluation

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

Constructor Summary
RuleExpressionResult(Rule rule, boolean success)
          Constructs a rule expression result with a success indicator but no responsibilities
RuleExpressionResult(Rule rule, boolean success, List<RuleResponsibility> responsibilities)
          Constructs a rule expression result with both a success indicator and a list of responsibilities
RuleExpressionResult(Rule rule, boolean success, RuleResponsibility responsibility)
          Constructs a rule expression result with both a success indicator and a single responsibilities
 
Method Summary
 List<RuleResponsibility> getResponsibilities()
           
 Rule getRule()
           
 boolean isSuccess()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleExpressionResult

public RuleExpressionResult(Rule rule,
                            boolean success)
Constructs a rule expression result with a success indicator but no responsibilities

Parameters:
success - whether the expression succeeded

RuleExpressionResult

public RuleExpressionResult(Rule rule,
                            boolean success,
                            List<RuleResponsibility> responsibilities)
Constructs a rule expression result with both a success indicator and a list of responsibilities

Parameters:
success - whether the expression succeeded
responsibilities - any responsibilities generated from a successful evaluation

RuleExpressionResult

public RuleExpressionResult(Rule rule,
                            boolean success,
                            RuleResponsibility responsibility)
Constructs a rule expression result with both a success indicator and a single responsibilities

Parameters:
success - whether the expression succeeded
responsibility - a single responsibility generated from a successful evaluation
Method Detail

getRule

public Rule getRule()
Returns:
the rule that this expression result is associated with

isSuccess

public boolean isSuccess()
Returns:
whether the evaluation was successful

getResponsibilities

public List<RuleResponsibility> getResponsibilities()
Returns:
any responsibilities generated from a successful evaluation

toString

public String toString()
Overrides:
toString in class Object


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