Class Expression

java.lang.Object
ru.bgcrm.dao.expression.Expression

public class Expression extends Object
JEXL expression processor. JEXL scripts are used for condition checking and execution small scripts. http://commons.apache.org/jexl/reference/syntax.html#Functions
  • Field Details

  • Constructor Details

  • Method Details

    • setExpressionContextUtils

      public static void setExpressionContextUtils(Map<String,Object> contextVars)
    • getContextObject

      public Object getContextObject(String name)
    • check

      public boolean check(String expression)
    • getString

      public String getString(String expression)
    • executeScript

      public Object executeScript(String expression)
    • 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 be null.
      process - the process.
      Returns: