public class DocumentLeftOperandHandler extends Object implements org.bonitasoft.engine.core.operation.LeftOperandHandler
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(org.bonitasoft.engine.core.process.document.api.ProcessDocumentService processDocumentService,
org.bonitasoft.engine.core.process.instance.api.ActivityInstanceService activityInstanceService,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
SessionService sessionService) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(org.bonitasoft.engine.core.operation.model.SLeftOperand leftOperand,
long containerId,
String containerType) |
String |
getType() |
Object |
retrieve(org.bonitasoft.engine.core.operation.model.SLeftOperand sLeftOperand,
org.bonitasoft.engine.core.expression.control.model.SExpressionContext expressionContext) |
boolean |
supportBatchUpdate() |
Object |
update(org.bonitasoft.engine.core.operation.model.SLeftOperand sLeftOperand,
Object newValue,
long containerId,
String containerType) |
public DocumentLeftOperandHandler(org.bonitasoft.engine.core.process.document.api.ProcessDocumentService processDocumentService,
org.bonitasoft.engine.core.process.instance.api.ActivityInstanceService activityInstanceService,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
SessionService sessionService)
public Object update(org.bonitasoft.engine.core.operation.model.SLeftOperand sLeftOperand, Object newValue, long containerId, String containerType) throws org.bonitasoft.engine.core.operation.exception.SOperationExecutionException
update in interface org.bonitasoft.engine.core.operation.LeftOperandHandlerorg.bonitasoft.engine.core.operation.exception.SOperationExecutionExceptionpublic String getType()
getType in interface org.bonitasoft.engine.core.operation.LeftOperandHandlerpublic void delete(org.bonitasoft.engine.core.operation.model.SLeftOperand leftOperand,
long containerId,
String containerType)
throws org.bonitasoft.engine.core.operation.exception.SOperationExecutionException
delete in interface org.bonitasoft.engine.core.operation.LeftOperandHandlerorg.bonitasoft.engine.core.operation.exception.SOperationExecutionExceptionpublic Object retrieve(org.bonitasoft.engine.core.operation.model.SLeftOperand sLeftOperand, org.bonitasoft.engine.core.expression.control.model.SExpressionContext expressionContext)
retrieve in interface org.bonitasoft.engine.core.operation.LeftOperandHandlerpublic boolean supportBatchUpdate()
supportBatchUpdate in interface org.bonitasoft.engine.core.operation.LeftOperandHandlerCopyright © 2014 Bonitasoft S.A.. All rights reserved.