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 TypeMethodDescriptioncontext
(ConnectionSet conSet, DynActionForm form, UserEvent event, Process process) Creates expressions' context for process related expression.boolean
executeCheck
(String expression) executeGetString
(String expression) 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
-
executeCheck
-
executeGetString
-
execute
-
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:
-