Package ru.bgcrm.dao.expression
Class Expression
java.lang.Object
ru.bgcrm.dao.expression.Expression
JEXL expression processor.
JEXL scripts are used for condition checking and execution small scripts.
http://commons.apache.org/jexl/reference/syntax.html#Functions
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
context
(ConnectionSet conSet, DynActionForm form, UserEvent event, Process process) Creates expressions' context for process related expression.executeScript
(String expression) getContextObject
(String name) static Expression
init
(ConnectionSet conSet, UserEvent event, Process process) Creates initialized expression for a process related expression.static void
setExpressionContextUtils
(Map<String, Object> contextVars)
-
Field Details
-
EXPRESSION_CONFIG_KEY
- See Also:
-
CHECK_EXPRESSION_CONFIG_KEY
- See Also:
-
CHECK_ERROR_MESSAGE_CONFIG_KEY
- See Also:
-
DO_EXPRESSION_CONFIG_KEY
- See Also:
-
-
Constructor Details
-
Expression
-
-
Method Details
-
setExpressionContextUtils
-
getContextObject
-
check
-
getString
-
executeScript
-
init
public static Expression init(ConnectionSet conSet, UserEvent event, Process process) throws Exception Creates initialized expression for a process related expression.- Parameters:
conSet
- DB connection sets.event
- event.process
- the process.- Returns:
- Throws:
Exception
-
context
public static Map<String,Object> context(ConnectionSet conSet, DynActionForm form, UserEvent event, Process process) Creates expressions' context for process related expression.- Parameters:
conSet
- DB connections set.form
- request form.event
- event, can benull
.process
- the process.- Returns:
-