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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.Object>evaluate(ExpressionKind expressionKind, java.util.List<SExpression> expressions, java.util.Map<java.lang.String,java.lang.Object> dependencyValues, java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions, ContainerState containerState)Evaluate type specified expressions with dependency valuesjava.lang.Objectevaluate(SExpression expression, java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions, ContainerState containerState)Evaluate the specific expressionjava.lang.Objectevaluate(SExpression expression, java.util.Map<java.lang.String,java.lang.Object> dependencyValues, java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions, ContainerState containerState)Evaluate the specific expression with dependency valuesbooleanmustCheckExpressionReturnType()Should 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(java.util.List<ExpressionExecutorStrategy> expressionStrategies)
-
-
-
Method Detail
-
evaluate
java.lang.Object evaluate(SExpression expression, java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions, ContainerState containerState) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionException
Evaluate the specific expression- Parameters:
expression- the expression will be evaluated- Returns:
- the evaluated expression result
- Throws:
SExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionException
-
evaluate
java.lang.Object evaluate(SExpression expression, java.util.Map<java.lang.String,java.lang.Object> dependencyValues, java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions, ContainerState containerState) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionException
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
java.util.List<java.lang.Object> evaluate(ExpressionKind expressionKind, java.util.List<SExpression> expressions, java.util.Map<java.lang.String,java.lang.Object> dependencyValues, java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions, ContainerState containerState) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionException
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
boolean mustPutEvaluatedExpressionInContext(ExpressionKind expressionKind)
Should an expression result of a specifiedExpressionKindmust be put in the evaluation context?- Parameters:
expressionKind- theExpressionKind
-
setExpressionExecutorStrategy
void setExpressionExecutorStrategy(java.util.List<ExpressionExecutorStrategy> expressionStrategies)
-
-