public class ConditionExpressionExecutorStrategy extends NonEmptyContentExpressionExecutorStrategy
| Modifier and Type | Field and Description |
|---|---|
static String |
EQUALS_COMPARATOR |
static String |
GREATER_THAN_COMPARATOR |
static String |
GREATER_THAN_OR_EQUALS_COMPARATOR |
static String |
LESS_THAN_COMPARATOR |
static String |
lESS_THAN_OR_EQUALS_COMPARATOR |
static String |
LOGICAL_COMPLEMENT_OPERATOR |
static String |
NOT_EQUALS_COMPARATOR |
CONTAINER_ID_KEY, CONTAINER_TYPE_KEY, DEFINITION_ID, DEFINITION_TYPE, INTERPRETER_GROOVY, KIND_BUSINESS_DATA, KIND_BUSINESS_DATA_REFERENCE, KIND_BUSINESS_OBJECT_DAO, KIND_CONSTANT, KIND_CONTRACT_INPUT, KIND_DOCUMENT, KIND_DOCUMENT_LIST, KIND_ENGINE_CONSTANT, KIND_INPUT, KIND_JAVA_METHOD_CALL, KIND_LIST, KIND_PARAMETER, KIND_PATTERN, KIND_QUERY_BUSINESS_DATA, KIND_READ_ONLY_SCRIPT_GROOVY, KIND_TRANSIENT_VARIABLE, KIND_VARIABLE, KIND_XPATH_READ, NO_DEPENDENCY_EXPRESSION_EVALUATION_ORDER, TYPE_BUSINESS_DATA, TYPE_BUSINESS_DATA_REFERENCE, TYPE_BUSINESS_OBJECT_DAO, TYPE_CONSTANT, TYPE_CONTRACT_INPUT, TYPE_DOCUMENT, TYPE_DOCUMENT_LIST, TYPE_ENGINE_CONSTANT, TYPE_INPUT, TYPE_JAVA_METHOD_CALL, TYPE_LIST, TYPE_PARAMETER, TYPE_PATTERN, TYPE_QUERY_BUSINESS_DATA, TYPE_READ_ONLY_SCRIPT, TYPE_TRANSIENT_VARIABLE, TYPE_VARIABLE, TYPE_XPATH_READ| Constructor and Description |
|---|
ConditionExpressionExecutorStrategy(LogicalComplementExecutor logicalComplementExecutor,
BinaryComparatorExecutor binaryComparatorExecutor) |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
evaluate(List<SExpression> expressions,
Map<String,Object> context,
Map<Integer,Object> resolvedExpressions,
ContainerState containerState) |
Object |
evaluate(SExpression expression,
Map<String,Object> context,
Map<Integer,Object> resolvedExpressions,
ContainerState containerState) |
ExpressionKind |
getExpressionKind() |
boolean |
mustPutEvaluatedExpressionInContext()
Should we put the evaluated expressions of this strategy in the evaluation context?
|
void |
validate(SExpression expression)
Validate the expression, an exception is thrown it is invalid
|
public static final String LOGICAL_COMPLEMENT_OPERATOR
public static final String NOT_EQUALS_COMPARATOR
public static final String EQUALS_COMPARATOR
public static final String GREATER_THAN_OR_EQUALS_COMPARATOR
public static final String lESS_THAN_OR_EQUALS_COMPARATOR
public static final String GREATER_THAN_COMPARATOR
public static final String LESS_THAN_COMPARATOR
public ConditionExpressionExecutorStrategy(LogicalComplementExecutor logicalComplementExecutor, BinaryComparatorExecutor binaryComparatorExecutor)
public Object evaluate(SExpression expression, Map<String,Object> context, Map<Integer,Object> resolvedExpressions, ContainerState containerState) throws SExpressionEvaluationException
expression - the expression to evaluatecontext - map containing the result of the evaluation of dependencies
and also informations about the context of evaluation given by ExpressionExecutorStrategy.CONTAINER_ID_KEY and ExpressionExecutorStrategy.CONTAINER_TYPE_KEYSExpressionEvaluationExceptionpublic void validate(SExpression expression) throws SInvalidExpressionException
ExpressionExecutorStrategyvalidate in interface ExpressionExecutorStrategyvalidate in class NonEmptyContentExpressionExecutorStrategyexpression - the expression to validateSInvalidExpressionException - if the exception is invalidpublic ExpressionKind getExpressionKind()
public List<Object> evaluate(List<SExpression> expressions, Map<String,Object> context, Map<Integer,Object> resolvedExpressions, ContainerState containerState) throws SExpressionEvaluationException
SExpressionEvaluationExceptionpublic boolean mustPutEvaluatedExpressionInContext()
ExpressionExecutorStrategyCopyright © 2018 Bonitasoft S.A.. All rights reserved.