Package org.bonitasoft.engine.expression
Class EngineConstantExpressionExecutorStrategy
- java.lang.Object
-
- org.bonitasoft.engine.expression.EngineConstantExpressionExecutorStrategy
-
- All Implemented Interfaces:
ExpressionExecutorStrategy
public class EngineConstantExpressionExecutorStrategy extends java.lang.Object implements ExpressionExecutorStrategy
- Author:
- Matthieu Chaffotte, Elias Ricken de Medeiros, Celine Souchet
-
-
Field Summary
-
Fields inherited from interface org.bonitasoft.engine.expression.ExpressionExecutorStrategy
CONTAINER_ID_KEY, CONTAINER_TYPE_KEY, DEFINITION_ID, INTERPRETER_GROOVY, KIND_BUSINESS_DATA, KIND_BUSINESS_DATA_REFERENCE, KIND_BUSINESS_OBJECT_DAO, KIND_CONSTANT, KIND_CONTRACT_INPUT, KIND_DOCUMENT, KIND_DOCUMENT_LIST, KIND_ENGINE_CONSTANT, KIND_INPUT, KIND_JAVA_METHOD_CALL, KIND_LIST, KIND_PARAMETER, KIND_PATTERN, KIND_QUERY_BUSINESS_DATA, KIND_READ_ONLY_CONDITION_SCRIPT_GROOVY, KIND_READ_ONLY_SCRIPT_GROOVY, KIND_TRANSIENT_VARIABLE, KIND_VARIABLE, KIND_XPATH_READ, NO_DEPENDENCY_EXPRESSION_EVALUATION_ORDER, TYPE_BUSINESS_DATA, TYPE_BUSINESS_DATA_REFERENCE, TYPE_BUSINESS_OBJECT_DAO, TYPE_CONSTANT, TYPE_CONTRACT_INPUT, TYPE_DOCUMENT, TYPE_DOCUMENT_LIST, TYPE_ENGINE_CONSTANT, TYPE_INPUT, TYPE_JAVA_METHOD_CALL, TYPE_LIST, TYPE_PARAMETER, TYPE_PATTERN, TYPE_QUERY_BUSINESS_DATA, TYPE_READ_ONLY_CONDITION_SCRIPT, TYPE_READ_ONLY_SCRIPT, TYPE_TRANSIENT_VARIABLE, TYPE_VARIABLE, TYPE_XPATH_READ
-
-
Constructor Summary
Constructors Constructor Description EngineConstantExpressionExecutorStrategy(ActivityInstanceService activityInstanceService, ProcessInstanceService processInstanceService, SessionService sessionService, SessionAccessor sessionAccessor)
-
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, java.util.Map<java.lang.String,java.lang.Object> context, java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions, ContainerState containerState)java.io.Serializableevaluate(java.util.Map<java.lang.String,java.lang.Object> context, ContainerState containerState, org.bonitasoft.engine.expression.ExpressionConstants expressionConstant, java.lang.String expressionName)java.io.Serializableevaluate(SExpression expression, java.util.Map<java.lang.String,java.lang.Object> context, java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions, ContainerState containerState)protected org.bonitasoft.engine.api.APIAccessorgetApiAccessor()protected org.bonitasoft.engine.api.APIAccessorgetConnectorApiAccessor()ExpressionKindgetExpressionKind()java.io.SerializablegetFromContextOrEngineExecutionContext(org.bonitasoft.engine.expression.ExpressionConstants expressionConstant, java.util.Map<java.lang.String,java.lang.Object> context, ContainerState containerState)SessionAccessorgetSessionAccessor()SessionServicegetSessionService()booleanmustPutEvaluatedExpressionInContext()Should we put the evaluated expressions of this strategy in the evaluation context?voidvalidate(SExpression expression)Validate the expression, an exception is thrown it is invalid
-
-
-
Constructor Detail
-
EngineConstantExpressionExecutorStrategy
public EngineConstantExpressionExecutorStrategy(ActivityInstanceService activityInstanceService, ProcessInstanceService processInstanceService, SessionService sessionService, SessionAccessor sessionAccessor)
-
-
Method Detail
-
evaluate
public java.io.Serializable evaluate(SExpression expression, java.util.Map<java.lang.String,java.lang.Object> context, java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions, ContainerState containerState) throws SExpressionEvaluationException
- Specified by:
evaluatein interfaceExpressionExecutorStrategy- Parameters:
expression- the expression to evaluatecontext- map containing the result of the evaluation of dependencies and also informations about the context of evaluation given byExpressionExecutorStrategy.CONTAINER_ID_KEYandExpressionExecutorStrategy.CONTAINER_TYPE_KEY- Returns:
- the result of the evaluation of the expression of appropriate type
- Throws:
SExpressionEvaluationException
-
evaluate
public java.io.Serializable evaluate(java.util.Map<java.lang.String,java.lang.Object> context, ContainerState containerState, org.bonitasoft.engine.expression.ExpressionConstants expressionConstant, java.lang.String expressionName) throws SExpressionEvaluationException- Throws:
SExpressionEvaluationException
-
getApiAccessor
protected org.bonitasoft.engine.api.APIAccessor getApiAccessor()
-
getConnectorApiAccessor
protected org.bonitasoft.engine.api.APIAccessor getConnectorApiAccessor() throws STenantIdNotSetException- Throws:
STenantIdNotSetException
-
getFromContextOrEngineExecutionContext
public java.io.Serializable getFromContextOrEngineExecutionContext(org.bonitasoft.engine.expression.ExpressionConstants expressionConstant, java.util.Map<java.lang.String,java.lang.Object> context, ContainerState containerState) throws SBonitaException- Throws:
SBonitaException
-
validate
public void validate(SExpression expression) throws SInvalidExpressionException
Description copied from interface:ExpressionExecutorStrategyValidate the expression, an exception is thrown it is invalid- Specified by:
validatein interfaceExpressionExecutorStrategy- Parameters:
expression- the expression to validate- Throws:
SInvalidExpressionException- if the exception is invalid
-
getExpressionKind
public ExpressionKind getExpressionKind()
- Specified by:
getExpressionKindin interfaceExpressionExecutorStrategy
-
evaluate
public java.util.List<java.lang.Object> evaluate(java.util.List<SExpression> expressions, java.util.Map<java.lang.String,java.lang.Object> context, java.util.Map<java.lang.Integer,java.lang.Object> resolvedExpressions, ContainerState containerState) throws SExpressionEvaluationException
- Specified by:
evaluatein interfaceExpressionExecutorStrategy- Throws:
SExpressionEvaluationException
-
mustPutEvaluatedExpressionInContext
public boolean mustPutEvaluatedExpressionInContext()
Description copied from interface:ExpressionExecutorStrategyShould we put the evaluated expressions of this strategy in the evaluation context?- Specified by:
mustPutEvaluatedExpressionInContextin interfaceExpressionExecutorStrategy
-
getSessionAccessor
public SessionAccessor getSessionAccessor()
-
getSessionService
public SessionService getSessionService()
-
-