public class DataLeftOperandHandler extends Object implements LeftOperandHandler
| Constructor and Description |
|---|
DataLeftOperandHandler(DataInstanceService dataInstanceService,
ParentContainerResolver parentContainerResolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(SLeftOperand leftOperand,
long containerId,
String containerType) |
protected SDataInstance |
getDataInstance(String dataInstanceName,
long containerId,
String containerType) |
String |
getType() |
void |
loadLeftOperandInContext(List<SLeftOperand> sLeftOperand,
long leftOperandContainerId,
String leftOperandContainerType,
SExpressionContext expressionContext) |
void |
loadLeftOperandInContext(SLeftOperand sLeftOperand,
long leftOperandContainerId,
String leftOperandContainerType,
SExpressionContext expressionContext)
retrieve the left operand and put it in context as needed by the left operand
|
protected void |
update(SDataInstance sDataInstance,
Object content) |
Object |
update(SLeftOperand leftOperand,
Map<String,Object> inputValues,
Object newValue,
long containerId,
String containerType) |
public DataLeftOperandHandler(DataInstanceService dataInstanceService, ParentContainerResolver parentContainerResolver)
public String getType()
getType in interface LeftOperandHandlerpublic Object update(SLeftOperand leftOperand, Map<String,Object> inputValues, Object newValue, long containerId, String containerType) throws SOperationExecutionException
update in interface LeftOperandHandlerleftOperand - the left operandinputValues - contains value(s) given by the strategy to update the left operand withnewValue - the value to set the element withcontainerId - the container idcontainerType - the container typeSOperationExecutionExceptionprotected void update(SDataInstance sDataInstance, Object content) throws SDataInstanceException
SDataInstanceExceptionpublic void delete(SLeftOperand leftOperand, long containerId, String containerType) throws SOperationExecutionException
delete in interface LeftOperandHandlerSOperationExecutionExceptionpublic void loadLeftOperandInContext(SLeftOperand sLeftOperand, long leftOperandContainerId, String leftOperandContainerType, SExpressionContext expressionContext) throws SBonitaReadException
LeftOperandHandlerloadLeftOperandInContext in interface LeftOperandHandlersLeftOperand - the left operandleftOperandContainerId - the left operand container id. Used to execute the left Operand in the correct contextleftOperandContainerType - the left operand container type. Used to execute the left Operand in the correct contextexpressionContext - the context to add the value iSBonitaReadExceptionpublic void loadLeftOperandInContext(List<SLeftOperand> sLeftOperand, long leftOperandContainerId, String leftOperandContainerType, SExpressionContext expressionContext) throws SBonitaReadException
loadLeftOperandInContext in interface LeftOperandHandlerSBonitaReadExceptionprotected SDataInstance getDataInstance(String dataInstanceName, long containerId, String containerType) throws SDataInstanceException
SDataInstanceExceptionCopyright © 2019 Bonitasoft S.A.. All rights reserved.