Class OperationServiceImpl
java.lang.Object
org.bonitasoft.engine.core.operation.impl.OperationServiceImpl
- All Implemented Interfaces:
OperationService
@Service("operationService")
public class OperationServiceImpl
extends Object
implements OperationService
- Author:
- Zhang Bole, Elias Ricken de Medeiros, Celine Souchet, Colin Puy, Matthieu Chaffotte
-
Constructor Summary
ConstructorsConstructorDescriptionOperationServiceImpl(OperationExecutorStrategyProvider operationExecutorStrategyProvider, List<LeftOperandHandler> leftOperandHandlers, ExpressionResolverService expressionResolverService, PersistRightOperandResolver persistRightOperandResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectevaluateRightOperandExpression(SOperation operation, SExpressionContext expressionContext, SExpression sExpression) voidexecute(List<SOperation> operations, long leftOperandContainerId, String leftOperandContainerType, SExpressionContext expressionContext) Execute the given operation in the given context and update data that are in the given data containervoidexecute(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, String containerType, SExpressionContext expressionContext) Execute the given operation in the given context and update data that are in the given data container
-
Constructor Details
-
OperationServiceImpl
public OperationServiceImpl(OperationExecutorStrategyProvider operationExecutorStrategyProvider, List<LeftOperandHandler> leftOperandHandlers, ExpressionResolverService expressionResolverService, PersistRightOperandResolver persistRightOperandResolver)
-
-
Method Details
-
execute
public void execute(SOperation operation, long containerId, 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(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(List<SOperation> operations, long leftOperandContainerId, 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 Object evaluateRightOperandExpression(SOperation operation, SExpressionContext expressionContext, SExpression sExpression) throws SOperationExecutionException - Throws:
SOperationExecutionException
-