Class EvaluatorUtils
java.lang.Object
org.keycloak.models.workflow.expression.EvaluatorUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateEvaluatorContext(String expression) Creates an EvaluatorContext from the given expression.createEvaluatorContext(ComponentModel workflowModel, String expression) Creates or retrieves a cached EvaluatorContext for the given workflow model and expression.
-
Field Details
-
MAX_EXPRESSION_LENGTH
public static final int MAX_EXPRESSION_LENGTH- See Also:
-
MAX_EXPRESSION_DEPTH
public static final int MAX_EXPRESSION_DEPTH- See Also:
-
-
Constructor Details
-
EvaluatorUtils
public EvaluatorUtils()
-
-
Method Details
-
createEvaluatorContext
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 modelexpression- the boolean expression to parse- Returns:
- the EvaluatorContext representing the parsed expression
-