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 Link icon

  • Constructor Details Link icon

  • Method Details Link icon

    • setExpressionContextUtils Link icon

      public static void setExpressionContextUtils(Map<String,Object> contextVars)
    • executeCheck Link icon

      public boolean executeCheck(String expression)
    • executeGetString Link icon

      public String executeGetString(String expression)
    • execute Link icon

      public Object execute(String expression)
    • init Link icon

      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 Link icon

      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: