Class JavaMethodOperationExecutorStrategy
- java.lang.Object
-
- org.bonitasoft.engine.core.operation.impl.JavaMethodOperationExecutorStrategy
-
- All Implemented Interfaces:
OperationExecutorStrategy
- Direct Known Subclasses:
BusinessDataJavaMethodOperationExecutorStrategy
public abstract class JavaMethodOperationExecutorStrategy extends java.lang.Object implements OperationExecutorStrategy
This stategy is not used directly, BusinessDataJavaMethodOperationExecutorStrategy is first executed and then delegate to that one.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TYPE_JAVA_METHOD
-
Constructor Summary
Constructors Constructor Description JavaMethodOperationExecutorStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
computeNewValueForLeftOperand(SOperation operation, java.lang.Object valueToSetObjectWith, SExpressionContext expressionContext, boolean shouldPersistValue)
Calculates the new value of the left operand base of right operand expression valueprotected java.lang.String
extractMethodName(SOperation operation)
protected java.lang.Object
extractObjectToInvokeFromContext(SOperation operation, SExpressionContext expressionContext)
protected java.lang.String
extractParameterType(SOperation operation)
java.lang.String
getOperationType()
boolean
shouldPersistOnNullValue()
Determines if the operation right value should be persisted when the value is evaluated to null.
-
-
-
Field Detail
-
TYPE_JAVA_METHOD
public static final java.lang.String TYPE_JAVA_METHOD
- See Also:
- Constant Field Values
-
-
Method Detail
-
computeNewValueForLeftOperand
public java.lang.Object computeNewValueForLeftOperand(SOperation operation, java.lang.Object valueToSetObjectWith, SExpressionContext expressionContext, boolean shouldPersistValue) throws SOperationExecutionException
Description copied from interface:OperationExecutorStrategy
Calculates the new value of the left operand base of right operand expression value- Specified by:
computeNewValueForLeftOperand
in interfaceOperationExecutorStrategy
- 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
-
extractParameterType
protected java.lang.String extractParameterType(SOperation operation)
-
extractMethodName
protected java.lang.String extractMethodName(SOperation operation)
-
extractObjectToInvokeFromContext
protected java.lang.Object extractObjectToInvokeFromContext(SOperation operation, SExpressionContext expressionContext) throws SOperationExecutionException
- Throws:
SOperationExecutionException
-
getOperationType
public java.lang.String getOperationType()
- Specified by:
getOperationType
in interfaceOperationExecutorStrategy
-
shouldPersistOnNullValue
public boolean shouldPersistOnNullValue()
Description copied from interface:OperationExecutorStrategy
Determines if the operation right value should be persisted when the value is evaluated to null.- Specified by:
shouldPersistOnNullValue
in interfaceOperationExecutorStrategy
- Returns:
- true if the the evaluated right value should be persisted; false otherwise.
-
-