java.lang.Object
org.keycloak.models.workflow.conditions.expression.EvaluatorUtils

public class EvaluatorUtils extends Object
  • Constructor Details

    • EvaluatorUtils

      public EvaluatorUtils()
  • Method Details

    • createEvaluatorContext

      public static BooleanConditionParser.EvaluatorContext createEvaluatorContext(String expression)
      Creates an EvaluatorContext from the given expression. If the expression is invalid, a WorkflowInvalidStateException is thrown with details about the parsing errors.
      Parameters:
      expression - the boolean expression to parse
      Returns:
      the EvaluatorContext representing the parsed expression
    • createEvaluatorContext

      public static BooleanConditionParser.EvaluatorContext createEvaluatorContext(ComponentModel workflowModel, String expression)
      Creates or retrieves a cached EvaluatorContext for the given workflow model and expression.
      Parameters:
      workflowModel - the workflow component model
      expression - the boolean expression to parse
      Returns:
      the EvaluatorContext representing the parsed expression