Class ExpressionResolverServiceImpl
- java.lang.Object
-
- org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl
-
- All Implemented Interfaces:
ExpressionResolverService
public class ExpressionResolverServiceImpl extends java.lang.Object implements ExpressionResolverService
- Author:
- Zhao Na, Emmanuel Duchastenier, Baptiste Mesta, Celine Souchet
-
-
Constructor Summary
Constructors Constructor Description ExpressionResolverServiceImpl(ExpressionService expressionService, ProcessDefinitionService processDefinitionService, ClassLoaderService classLoaderService, TimeTracker timeTracker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Object>evaluate(java.util.List<SExpression> expressions, SExpressionContext contextDependency)Evaluate the specific expressions with the given expressionContext.java.lang.Objectevaluate(SExpression expression)Evaluate the specific expressionjava.lang.Objectevaluate(SExpression expression, SExpressionContext evaluationContext)Evaluate the specific expression with the given expressionContext.
-
-
-
Constructor Detail
-
ExpressionResolverServiceImpl
public ExpressionResolverServiceImpl(ExpressionService expressionService, ProcessDefinitionService processDefinitionService, ClassLoaderService classLoaderService, TimeTracker timeTracker)
-
-
Method Detail
-
evaluate
public java.lang.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 java.lang.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 java.util.List<java.lang.Object> evaluate(java.util.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
-
-