|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kew.rule.AccumulatingBSFRuleExpression.RuleHelper
private static final class AccumulatingBSFRuleExpression.RuleHelper
Helper class that is exposed to groovy scripts
| Field Summary | |
|---|---|
private List<RuleResponsibility> |
responsibilities
Responsibilities accumulated during the evaluation |
private int |
responsibilityPriority
|
private Rule |
rule
|
private BSFRuleExpression.WorkflowRuleAPI |
workflow
|
| Constructor Summary | |
|---|---|
private |
AccumulatingBSFRuleExpression.RuleHelper(Rule rule,
RouteContext context)
|
| Method Summary | |
|---|---|
void |
accumulate(RuleExpressionResult result)
Adds the responsibilities in the result to the list of accumulated responsibilities |
boolean |
evalRule(String ruleName)
Evaluates a named rule accumulating responsibilities regardless of rule success |
boolean |
evalRule(String ruleName,
boolean accumOnSuccess)
Evaluates a named rule and if it is successful accumulates the rule responsibilities |
List<RuleResponsibility> |
getResponsibilities()
|
RuleExpressionResult |
getResult(boolean success)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Rule rule
private BSFRuleExpression.WorkflowRuleAPI workflow
private List<RuleResponsibility> responsibilities
private int responsibilityPriority
| Constructor Detail |
|---|
private AccumulatingBSFRuleExpression.RuleHelper(Rule rule,
RouteContext context)
| Method Detail |
|---|
public List<RuleResponsibility> getResponsibilities()
public RuleExpressionResult getResult(boolean success)
success - whether the result should be successful
public void accumulate(RuleExpressionResult result)
result - a RuleExpressionResult whose responsibilities to accumulate
public boolean evalRule(String ruleName)
throws WorkflowException
ruleName - the name of the rule to evaluate
WorkflowException
public boolean evalRule(String ruleName,
boolean accumOnSuccess)
throws WorkflowException
ruleName - the name of the rule to evaluateaccumOnSuccess - whether to accumulate the rules responsibilities on success (true), or on failure (false)
WorkflowException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||