Package org.bonitasoft.engine.operation
Class DocumentLeftOperandHandler
- java.lang.Object
-
- org.bonitasoft.engine.operation.AbstractDocumentLeftOperandHandler
-
- org.bonitasoft.engine.operation.DocumentLeftOperandHandler
-
- All Implemented Interfaces:
LeftOperandHandler
@Component public class DocumentLeftOperandHandler extends AbstractDocumentLeftOperandHandler
Updates of creates a document of the process. this operation accepts onlyDocumentValueDocumentValueprovides 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
Constructors Constructor Description DocumentLeftOperandHandler(DocumentService documentService, ActivityInstanceService activityInstanceService, SessionAccessor sessionAccessor, SessionService sessionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(SLeftOperand leftOperand, long containerId, java.lang.String containerType)java.lang.StringgetType()java.lang.Objectupdate(SLeftOperand sLeftOperand, java.util.Map<java.lang.String,java.lang.Object> inputValues, java.lang.Object newValue, long containerId, java.lang.String containerType)-
Methods inherited from class org.bonitasoft.engine.operation.AbstractDocumentLeftOperandHandler
getAuthorId, getProcessInstanceId, loadLeftOperandInContext, loadLeftOperandInContext
-
-
-
-
Constructor Detail
-
DocumentLeftOperandHandler
public DocumentLeftOperandHandler(DocumentService documentService, ActivityInstanceService activityInstanceService, SessionAccessor sessionAccessor, SessionService sessionService)
-
-
Method Detail
-
update
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
- 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
public java.lang.String getType()
-
delete
public void delete(SLeftOperand leftOperand, long containerId, java.lang.String containerType) throws SOperationExecutionException
- Throws:
SOperationExecutionException
-
-