public class BSFRuleExpression extends Object implements RuleExpression
Modifier and Type | Class and Description |
---|---|
protected static class |
BSFRuleExpression.WorkflowRuleAPI
A helper bean that is declared for use by BSF scripts.
|
Constructor and Description |
---|
BSFRuleExpression() |
Modifier and Type | Method and Description |
---|---|
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
|
public BSFRuleExpression()
public RuleExpressionResult evaluate(Rule rule, RouteContext context)
RuleExpression
RuleResponsibilityBo
s to which to dispatch action requestsevaluate
in interface RuleExpression
rule
- the rule that this rule expression applies tocontext
- the RouteContext under which the expression is being evaluatedprotected String parseLang(String type, String deflt)
type
- the type stringdeflt
- the default language if none is present in the type stringprotected void declareBeans(ScriptEngine engine, Rule rule, RouteContext context) throws ScriptException
manager
- the BSFManagerrule
- the current Rule objectcontext
- the current RouteContextScriptException
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.