Class ExpressionServiceImpl
java.lang.Object
org.bonitasoft.engine.expression.impl.ExpressionServiceImpl
- All Implemented Interfaces:
ExpressionService
- Author:
- Zhao na, Emmanuel Duchastenier, Baptiste Mesta, Celine Souchet
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionServiceImpl(boolean checkExpressionReturnType, TimeTracker timeTracker) -
Method Summary
Modifier and TypeMethodDescriptionevaluate(ExpressionKind expressionKind, List<SExpression> expressions, Map<String, Object> dependencyValues, Map<Integer, Object> resolvedExpressions, ContainerState containerState) Evaluate type specified expressions with dependency valuesevaluate(SExpression expression, Map<Integer, Object> resolvedExpressions, ContainerState containerState) Evaluate the specific expressionevaluate(SExpression expression, Map<String, Object> dependencyValues, Map<Integer, Object> resolvedExpressions, ContainerState containerState) Evaluate the specific expression with dependency valuesbooleanShould we throw exception if the real return type is incompatible with the declared one?booleanmustPutEvaluatedExpressionInContext(ExpressionKind expressionKind) Should an expression result of a specifiedExpressionKindmust be put in the evaluation context?voidsetExpressionExecutorStrategy(List<ExpressionExecutorStrategy> expressionExecutors)
-
Constructor Details
-
ExpressionServiceImpl
-
-
Method Details
-
setExpressionExecutorStrategy
- Specified by:
setExpressionExecutorStrategyin interfaceExpressionService
-
evaluate
public Object evaluate(SExpression expression, Map<Integer, Object> resolvedExpressions, ContainerState containerState) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionExceptionDescription copied from interface:ExpressionServiceEvaluate the specific expression- Specified by:
evaluatein interfaceExpressionService- Parameters:
expression- the expression will be evaluated- Returns:
- the evaluated expression result
- Throws:
SExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionException
-
evaluate
public Object evaluate(SExpression expression, Map<String, Object> dependencyValues, Map<Integer, throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionExceptionObject> resolvedExpressions, ContainerState containerState) Description copied from interface:ExpressionServiceEvaluate the specific expression with dependency values- Specified by:
evaluatein interfaceExpressionService- Parameters:
expression- the expression will be evaluateddependencyValues- the dependency values, it may contain values for expression- Returns:
- the evaluated expression result
- Throws:
SExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionException
-
evaluate
public List<Object> evaluate(ExpressionKind expressionKind, List<SExpression> expressions, Map<String, Object> dependencyValues, Map<Integer, throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingExceptionObject> resolvedExpressions, ContainerState containerState) Description copied from interface:ExpressionServiceEvaluate type specified expressions with dependency values- Specified by:
evaluatein interfaceExpressionService- Parameters:
expressionKind- the expression kind to indicate which type of ExpressionExecutorStrategy will be used to evaluate the expressionsexpressions- a list of expressions to be evaluateddependencyValues- the dependency values for the expressions, it may contain value informations for expressions- Returns:
- a list of evaluated expression results
- Throws:
SExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingException
-
mustCheckExpressionReturnType
public boolean mustCheckExpressionReturnType()Description copied from interface:ExpressionServiceShould we throw exception if the real return type is incompatible with the declared one?- Specified by:
mustCheckExpressionReturnTypein interfaceExpressionService- Returns:
- true if an exception must be thrown if check fails, false otherwise.
-
mustPutEvaluatedExpressionInContext
Description copied from interface:ExpressionServiceShould an expression result of a specifiedExpressionKindmust be put in the evaluation context?- Specified by:
mustPutEvaluatedExpressionInContextin interfaceExpressionService- Parameters:
expressionKind- theExpressionKind
-