Package org.camunda.bpm.engine.impl.cmd
Class CreateAttachmentCmd
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cmd.CreateAttachmentCmd
-
- All Implemented Interfaces:
Command<Attachment>
public class CreateAttachmentCmd extends java.lang.Object implements Command<Attachment>
- Author:
- Tom Baeyens
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringattachmentDescriptionprotected java.lang.StringattachmentNameprotected java.lang.StringattachmentTypeprotected java.io.InputStreamcontentprotected ExecutionEntityprocessInstanceprotected java.lang.StringprocessInstanceIdprotected java.lang.StringtaskIdprotected java.lang.Stringurl
-
Constructor Summary
Constructors Constructor Description CreateAttachmentCmd(java.lang.String attachmentType, java.lang.String taskId, java.lang.String processInstanceId, java.lang.String attachmentName, java.lang.String attachmentDescription, java.io.InputStream content, java.lang.String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attachmentexecute(CommandContext commandContext)protected HistoricProcessInstanceEventEntitygetHistoricRootProcessInstance(java.lang.String rootProcessInstanceId)protected java.lang.StringgetHistoryRemovalTimeStrategy()protected booleanisHistoryRemovalTimeStrategyStart()protected voidprovideRemovalTime(AttachmentEntity attachment)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
-
-
-
Field Detail
-
taskId
protected java.lang.String taskId
-
attachmentType
protected java.lang.String attachmentType
-
processInstanceId
protected java.lang.String processInstanceId
-
attachmentName
protected java.lang.String attachmentName
-
attachmentDescription
protected java.lang.String attachmentDescription
-
content
protected java.io.InputStream content
-
url
protected java.lang.String url
-
processInstance
protected ExecutionEntity processInstance
-
-
Method Detail
-
execute
public Attachment execute(CommandContext commandContext)
- Specified by:
executein interfaceCommand<Attachment>
-
isHistoryRemovalTimeStrategyStart
protected boolean isHistoryRemovalTimeStrategyStart()
-
getHistoryRemovalTimeStrategy
protected java.lang.String getHistoryRemovalTimeStrategy()
-
getHistoricRootProcessInstance
protected HistoricProcessInstanceEventEntity getHistoricRootProcessInstance(java.lang.String rootProcessInstanceId)
-
provideRemovalTime
protected void provideRemovalTime(AttachmentEntity attachment)
-
-