public class EngineConstantExpressionExecutorStrategy extends Object implements ExpressionExecutorStrategy
CONTAINER_ID_KEY, CONTAINER_TYPE_KEY, DEFINITION_ID, DEFINITION_TYPE, 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_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_SCRIPT, TYPE_TRANSIENT_VARIABLE, TYPE_VARIABLE, TYPE_XPATH_READ| Constructor and Description |
|---|
EngineConstantExpressionExecutorStrategy(ActivityInstanceService activityInstanceService,
ProcessInstanceService processInstanceService,
SessionService sessionService,
SessionAccessor sessionAccessor) |
public EngineConstantExpressionExecutorStrategy(ActivityInstanceService activityInstanceService, ProcessInstanceService processInstanceService, SessionService sessionService, SessionAccessor sessionAccessor)
public Serializable evaluate(SExpression expression, Map<String,Object> context, Map<Integer,Object> resolvedExpressions, ContainerState containerState) throws SExpressionEvaluationException
evaluate in interface ExpressionExecutorStrategyexpression - the expression to evaluatecontext - map containing the result of the evaluation of dependencies
and also informations about the context of evaluation given by ExpressionExecutorStrategy.CONTAINER_ID_KEY and ExpressionExecutorStrategy.CONTAINER_TYPE_KEYSExpressionEvaluationExceptionpublic Serializable evaluate(Map<String,Object> context, ContainerState containerState, ExpressionConstants expressionConstant, String expressionName) throws SExpressionEvaluationException
SExpressionEvaluationExceptionprotected APIAccessor getApiAccessor()
protected APIAccessor getConnectorApiAccessor() throws STenantIdNotSetException
STenantIdNotSetExceptionpublic Serializable getFromContextOrEngineExecutionContext(ExpressionConstants expressionConstant, Map<String,Object> context, ContainerState containerState) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void validate(SExpression expression) throws SInvalidExpressionException
ExpressionExecutorStrategyvalidate in interface ExpressionExecutorStrategyexpression - the expression to validateSInvalidExpressionException - if the exception is invalidpublic ExpressionKind getExpressionKind()
getExpressionKind in interface ExpressionExecutorStrategypublic List<Object> evaluate(List<SExpression> expressions, Map<String,Object> context, Map<Integer,Object> resolvedExpressions, ContainerState containerState) throws SExpressionEvaluationException
evaluate in interface ExpressionExecutorStrategySExpressionEvaluationExceptionpublic boolean mustPutEvaluatedExpressionInContext()
ExpressionExecutorStrategymustPutEvaluatedExpressionInContext in interface ExpressionExecutorStrategypublic SessionAccessor getSessionAccessor()
public SessionService getSessionService()
Copyright © 2019 Bonitasoft S.A.. All rights reserved.