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.String
attachmentDescription
protected java.lang.String
attachmentName
protected java.lang.String
attachmentType
protected java.io.InputStream
content
protected ExecutionEntity
processInstance
protected java.lang.String
processInstanceId
protected java.lang.String
taskId
protected java.lang.String
url
-
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 Attachment
execute(CommandContext commandContext)
protected HistoricProcessInstanceEventEntity
getHistoricRootProcessInstance(java.lang.String rootProcessInstanceId)
protected java.lang.String
getHistoryRemovalTimeStrategy()
protected boolean
isHistoryRemovalTimeStrategyStart()
protected void
provideRemovalTime(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:
execute
in 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)
-
-