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(org.bonitasoft.engine.core.document.api.DocumentService documentService,
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) |
getAuthorId, getProcessInstanceId, toCheckedDocumentValuepublic DocumentLeftOperandHandler(org.bonitasoft.engine.core.document.api.DocumentService documentService,
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
org.bonitasoft.engine.core.operation.exception.SOperationExecutionExceptionpublic String getType()
public void delete(org.bonitasoft.engine.core.operation.model.SLeftOperand leftOperand,
long containerId,
String containerType)
throws org.bonitasoft.engine.core.operation.exception.SOperationExecutionException
org.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)
public boolean supportBatchUpdate()
Copyright © 2014 Bonitasoft S.A.. All rights reserved.