|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.rule.BSFRuleExpression
public class BSFRuleExpression
A rule expression implementation that uses Bean Scripting Framework. The language is given by the type qualifier, e.g.: <expression type="BSF:groovy">...
Nested Class Summary | |
---|---|
protected static class |
BSFRuleExpression.WorkflowRuleAPI
A helper bean that is declared for use by BSF scripts. |
Constructor Summary | |
---|---|
BSFRuleExpression()
|
Method Summary | |
---|---|
protected void |
declareBeans(org.apache.bsf.BSFManager manager,
Rule rule,
RouteContext context)
Populates the BSFManager with beans that are accessible to BSF scripts. |
RuleExpressionResult |
evaluate(Rule rule,
RouteContext context)
Performs an evaluation and returns a list of 0 or more RuleResponsibility s to which to dispatch action requests |
protected String |
parseLang(String type,
String deflt)
Parses the language component from the type string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BSFRuleExpression()
Method Detail |
---|
public RuleExpressionResult evaluate(Rule rule, RouteContext context) throws WorkflowException
RuleExpression
RuleResponsibility
s to which to dispatch action requests
evaluate
in interface RuleExpression
rule
- the rule that this rule expression applies tocontext
- the RouteContext under which the expression is being evaluated
WorkflowException
protected String parseLang(String type, String deflt)
type
- the type stringdeflt
- the default language if none is present in the type string
protected void declareBeans(org.apache.bsf.BSFManager manager, Rule rule, RouteContext context) throws org.apache.bsf.BSFException
manager
- the BSFManagerrule
- the current Rule objectcontext
- the current RouteContext
org.apache.bsf.BSFException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |