Class ExpressionResolverServiceImpl
java.lang.Object
org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl
- All Implemented Interfaces:
ExpressionResolverService
- Author:
- Zhao Na, Emmanuel Duchastenier, Baptiste Mesta, Celine Souchet
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionResolverServiceImpl(ExpressionService expressionService, ProcessDefinitionService processDefinitionService, ClassLoaderService classLoaderService, TimeTracker timeTracker) -
Method Summary
Modifier and TypeMethodDescriptionevaluate(List<SExpression> expressions, SExpressionContext contextDependency) Evaluate the specific expressions with the given expressionContext.evaluate(SExpression expression) Evaluate the specific expressionevaluate(SExpression expression, SExpressionContext evaluationContext) Evaluate the specific expression with the given expressionContext.
-
Constructor Details
-
ExpressionResolverServiceImpl
public ExpressionResolverServiceImpl(ExpressionService expressionService, ProcessDefinitionService processDefinitionService, ClassLoaderService classLoaderService, TimeTracker timeTracker)
-
-
Method Details
-
evaluate
public Object evaluate(SExpression expression) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionException Description copied from interface:ExpressionResolverServiceEvaluate the specific expression- Specified by:
evaluatein interfaceExpressionResolverService- Parameters:
expression- the expression will be evaluated- Returns:
- the evaluated expression result
- Throws:
SExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionException
-
evaluate
public Object evaluate(SExpression expression, SExpressionContext evaluationContext) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionException Description copied from interface:ExpressionResolverServiceEvaluate the specific expression with the given expressionContext.- Specified by:
evaluatein interfaceExpressionResolverService- Parameters:
expression- the expression will be evaluatedevaluationContext- the expressionContext, it can contain some value informations or evaluated enviorenment for expressions- Returns:
- the evaluated expression result
- Throws:
SExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionException
-
evaluate
public List<Object> evaluate(List<SExpression> expressions, SExpressionContext contextDependency) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionException Description copied from interface:ExpressionResolverServiceEvaluate the specific expressions with the given expressionContext.- Specified by:
evaluatein interfaceExpressionResolverService- Parameters:
expressions- a list of expressions will be evaluatedcontextDependency- the expressionContext, it can contain some value information or evaluated environment for expressions- Returns:
- the evaluated expression result in same order as expressions parameter
- Throws:
SExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionException
-