|
||||||||||
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(ScriptEngine engine,
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 RuleResponsibilityBo 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)
RuleExpression
RuleResponsibilityBo
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
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(ScriptEngine engine, Rule rule, RouteContext context) throws ScriptException
manager
- the BSFManagerrule
- the current Rule objectcontext
- the current RouteContext
ScriptException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |