Class OperationServiceImpl
- java.lang.Object
-
- org.bonitasoft.engine.core.operation.impl.OperationServiceImpl
-
- All Implemented Interfaces:
OperationService
@Service("operationService") public class OperationServiceImpl extends java.lang.Object implements OperationService- Author:
- Zhang Bole, Elias Ricken de Medeiros, Celine Souchet, Colin Puy, Matthieu Chaffotte
-
-
Constructor Summary
Constructors Constructor Description OperationServiceImpl(OperationExecutorStrategyProvider operationExecutorStrategyProvider, java.util.List<LeftOperandHandler> leftOperandHandlers, ExpressionResolverService expressionResolverService, PersistRightOperandResolver persistRightOperandResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectevaluateRightOperandExpression(SOperation operation, SExpressionContext expressionContext, SExpression sExpression)voidexecute(java.util.List<SOperation> operations, long leftOperandContainerId, java.lang.String leftOperandContainerType, SExpressionContext expressionContext)Execute the given operation in the given context and update data that are in the given data containervoidexecute(java.util.List<SOperation> operations, SExpressionContext expressionContext)Execute the given operation in the given context and update data that are in the same contextvoidexecute(SOperation operation, long containerId, java.lang.String containerType, SExpressionContext expressionContext)Execute the given operation in the given context and update data that are in the given data container
-
-
-
Constructor Detail
-
OperationServiceImpl
public OperationServiceImpl(OperationExecutorStrategyProvider operationExecutorStrategyProvider, java.util.List<LeftOperandHandler> leftOperandHandlers, ExpressionResolverService expressionResolverService, PersistRightOperandResolver persistRightOperandResolver)
-
-
Method Detail
-
execute
public void execute(SOperation operation, long containerId, java.lang.String containerType, SExpressionContext expressionContext) throws SOperationExecutionException
Description copied from interface:OperationServiceExecute the given operation in the given context and update data that are in the given data container- Specified by:
executein interfaceOperationService- Parameters:
operation- the operation to executecontainerId- the id of the data container (used for left operand)containerType- the type of the data container (used for left operand)expressionContext- the context in which execute the operation- Throws:
SOperationExecutionException
-
execute
public void execute(java.util.List<SOperation> operations, SExpressionContext expressionContext) throws SOperationExecutionException
Description copied from interface:OperationServiceExecute the given operation in the given context and update data that are in the same context- Specified by:
executein interfaceOperationService- Throws:
SOperationExecutionException
-
execute
public void execute(java.util.List<SOperation> operations, long leftOperandContainerId, java.lang.String leftOperandContainerType, SExpressionContext expressionContext) throws SOperationExecutionException
Description copied from interface:OperationServiceExecute the given operation in the given context and update data that are in the given data container- Specified by:
executein interfaceOperationService- Parameters:
operations- the operations to executeleftOperandContainerId- the id of the container (used for left operand)leftOperandContainerType- the type of the container (used for left operand)expressionContext- the context in which execute the operation- Throws:
SOperationExecutionException
-
evaluateRightOperandExpression
protected java.lang.Object evaluateRightOperandExpression(SOperation operation, SExpressionContext expressionContext, SExpression sExpression) throws SOperationExecutionException
- Throws:
SOperationExecutionException
-
-