Package org.bonitasoft.engine.operation
Class BusinessDataJavaMethodOperationExecutorStrategy
- java.lang.Object
-
- org.bonitasoft.engine.core.operation.impl.JavaMethodOperationExecutorStrategy
-
- org.bonitasoft.engine.operation.BusinessDataJavaMethodOperationExecutorStrategy
-
- All Implemented Interfaces:
OperationExecutorStrategy
@Component public class BusinessDataJavaMethodOperationExecutorStrategy extends JavaMethodOperationExecutorStrategy
- Author:
- Laurent Leseigneur, Matthieu Chaffotte
-
-
Field Summary
-
Fields inherited from class org.bonitasoft.engine.core.operation.impl.JavaMethodOperationExecutorStrategy
TYPE_JAVA_METHOD
-
-
Constructor Summary
Constructors Constructor Description BusinessDataJavaMethodOperationExecutorStrategy(BusinessDataService businessDataService, EntitiesActionsExecutor entitiesActionsExecutor, MergeEntityAction mergeEntityAction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectcomputeJavaOperation(SOperation operation, java.lang.Object valueToSetObjectWith, SExpressionContext expressionContext, boolean shouldPersistValue)java.lang.ObjectcomputeNewValueForLeftOperand(SOperation operation, java.lang.Object valueToSetObjectWith, SExpressionContext expressionContext, boolean shouldPersistValue)Calculates the new value of the left operand base of right operand expression valuebooleanshouldPersistOnNullValue()Determines if the operation right value should be persisted when the value is evaluated to null.-
Methods inherited from class org.bonitasoft.engine.core.operation.impl.JavaMethodOperationExecutorStrategy
extractMethodName, extractObjectToInvokeFromContext, extractParameterType, getOperationType
-
-
-
-
Constructor Detail
-
BusinessDataJavaMethodOperationExecutorStrategy
public BusinessDataJavaMethodOperationExecutorStrategy(BusinessDataService businessDataService, EntitiesActionsExecutor entitiesActionsExecutor, MergeEntityAction mergeEntityAction)
-
-
Method Detail
-
computeNewValueForLeftOperand
public java.lang.Object computeNewValueForLeftOperand(SOperation operation, java.lang.Object valueToSetObjectWith, SExpressionContext expressionContext, boolean shouldPersistValue) throws SOperationExecutionException
Description copied from interface:OperationExecutorStrategyCalculates the new value of the left operand base of right operand expression value- Specified by:
computeNewValueForLeftOperandin interfaceOperationExecutorStrategy- Overrides:
computeNewValueForLeftOperandin classJavaMethodOperationExecutorStrategy- Parameters:
operation- the operation in progressvalueToSetObjectWith- result of the evaluation of right operand expressionexpressionContext- the expression contextshouldPersistValue- true if the right operand must be persisted (Business Data)- Returns:
- the new value to set the left operand with
- Throws:
SOperationExecutionException
-
computeJavaOperation
protected java.lang.Object computeJavaOperation(SOperation operation, java.lang.Object valueToSetObjectWith, SExpressionContext expressionContext, boolean shouldPersistValue) throws SOperationExecutionException
- Throws:
SOperationExecutionException
-
shouldPersistOnNullValue
public boolean shouldPersistOnNullValue()
Description copied from interface:OperationExecutorStrategyDetermines if the operation right value should be persisted when the value is evaluated to null.- Specified by:
shouldPersistOnNullValuein interfaceOperationExecutorStrategy- Overrides:
shouldPersistOnNullValuein classJavaMethodOperationExecutorStrategy- Returns:
- true if the the evaluated right value should be persisted; false otherwise.
-
-