public class DocumentOperationExecutorStrategy extends Object implements org.bonitasoft.engine.core.operation.OperationExecutorStrategy
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 |
|---|
DocumentOperationExecutorStrategy(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 |
|---|---|
boolean |
doUpdateData() |
String |
getOperationType() |
Object |
getValue(org.bonitasoft.engine.core.operation.model.SOperation operation,
Object value,
long containerId,
String containerType,
org.bonitasoft.engine.core.expression.control.model.SExpressionContext expressionContext) |
void |
update(org.bonitasoft.engine.core.operation.model.SLeftOperand sLeftOperand,
Object newValue,
long containerId,
String containerType) |
public DocumentOperationExecutorStrategy(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 getValue(org.bonitasoft.engine.core.operation.model.SOperation operation, Object value, long containerId, String containerType, org.bonitasoft.engine.core.expression.control.model.SExpressionContext expressionContext)
getValue in interface org.bonitasoft.engine.core.operation.OperationExecutorStrategypublic String getOperationType()
getOperationType in interface org.bonitasoft.engine.core.operation.OperationExecutorStrategypublic void 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.OperationExecutorStrategyorg.bonitasoft.engine.core.operation.exception.SOperationExecutionExceptionpublic boolean doUpdateData()
doUpdateData in interface org.bonitasoft.engine.core.operation.OperationExecutorStrategyCopyright © 2014 BonitaSoft. All Rights Reserved.