Package org.bonitasoft.engine.operation
Class DocumentLeftOperandHandler
java.lang.Object
org.bonitasoft.engine.operation.AbstractDocumentLeftOperandHandler
org.bonitasoft.engine.operation.DocumentLeftOperandHandler
- All Implemented Interfaces:
LeftOperandHandler
Updates of creates a document of the process.
this operation accepts only
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.- Author:
- Baptiste Mesta, Matthieu Chaffotte
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentLeftOperandHandler(DocumentService documentService, ActivityInstanceService activityInstanceService, SessionAccessor sessionAccessor, SessionService sessionService) -
Method Summary
Methods inherited from class org.bonitasoft.engine.operation.AbstractDocumentLeftOperandHandler
getAuthorId, getProcessInstanceId, loadLeftOperandInContext, loadLeftOperandInContext
-
Constructor Details
-
DocumentLeftOperandHandler
public DocumentLeftOperandHandler(DocumentService documentService, ActivityInstanceService activityInstanceService, SessionAccessor sessionAccessor, SessionService sessionService)
-
-
Method Details
-
update
public Object update(SLeftOperand sLeftOperand, Map<String, Object> inputValues, Object newValue, long containerId, String containerType) throws SOperationExecutionException- Parameters:
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 type- Throws:
SOperationExecutionException
-
getType
-
delete
public void delete(SLeftOperand leftOperand, long containerId, String containerType) throws SOperationExecutionException - Throws:
SOperationExecutionException
-