public class DocumentLeftOperandHandler extends AbstractDocumentLeftOperandHandler
DocumentValue DocumentValue provides filename, mimetype and content
The document that will be update/created have the name given to the leftOperand (leftOperand.getName())
If the document already exists on the process instance (document with same name), it is update.
If there is no document with this name, it is created.| Constructor and Description |
|---|
DocumentLeftOperandHandler(DocumentService documentService,
ActivityInstanceService activityInstanceService,
SessionAccessor sessionAccessor,
SessionService sessionService) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(SLeftOperand leftOperand,
long containerId,
java.lang.String containerType) |
java.lang.String |
getType() |
java.lang.Object |
update(SLeftOperand sLeftOperand,
java.util.Map<java.lang.String,java.lang.Object> inputValues,
java.lang.Object newValue,
long containerId,
java.lang.String containerType) |
getAuthorId, getProcessInstanceId, loadLeftOperandInContext, loadLeftOperandInContextpublic DocumentLeftOperandHandler(DocumentService documentService, ActivityInstanceService activityInstanceService, SessionAccessor sessionAccessor, SessionService sessionService)
public java.lang.Object update(SLeftOperand sLeftOperand, java.util.Map<java.lang.String,java.lang.Object> inputValues, java.lang.Object newValue, long containerId, java.lang.String containerType) throws SOperationExecutionException
sLeftOperand - 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 typeSOperationExecutionExceptionpublic java.lang.String getType()
public void delete(SLeftOperand leftOperand, long containerId, java.lang.String containerType) throws SOperationExecutionException
SOperationExecutionException