Package org.bonitasoft.engine.expression
Interface ExpressionService
- All Known Implementing Classes:
ExpressionServiceImpl
public interface ExpressionService
- Since:
- 6.0
- Author:
- Zhao Na, Baptiste Mesta, Celine Souchet
-
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> expressionStrategies)
-
Method Details
-
evaluate
Object evaluate(SExpression expression, Map<Integer, Object> resolvedExpressions, ContainerState containerState) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionExceptionEvaluate the specific expression- Parameters:
expression- the expression will be evaluated- Returns:
- the evaluated expression result
- Throws:
SExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionException
-
evaluate
Object evaluate(SExpression expression, Map<String, Object> dependencyValues, Map<Integer, throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionExceptionObject> resolvedExpressions, ContainerState containerState) Evaluate the specific expression with dependency values- Parameters:
expression- the expression will be evaluateddependencyValues- the dependency values, it may contain values for expression- Returns:
- the evaluated expression result
- Throws:
SExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionException
-
evaluate
List<Object> evaluate(ExpressionKind expressionKind, List<SExpression> expressions, Map<String, Object> dependencyValues, Map<Integer, throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionExceptionObject> resolvedExpressions, ContainerState containerState) Evaluate type specified expressions with dependency values- 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:
SExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionException
-
mustCheckExpressionReturnType
boolean mustCheckExpressionReturnType()Should we throw exception if the real return type is incompatible with the declared one?- Returns:
- true if an exception must be thrown if check fails, false otherwise.
-
mustPutEvaluatedExpressionInContext
Should an expression result of a specifiedExpressionKindmust be put in the evaluation context?- Parameters:
expressionKind- theExpressionKind
-
setExpressionExecutorStrategy
-