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 Object implements Command<Attachment>
- Author:
- Tom Baeyens
-
-
Field Summary
Fields Modifier and Type Field Description protected String
attachmentDescription
protected String
attachmentName
protected String
attachmentType
protected InputStream
content
protected ExecutionEntity
processInstance
protected String
processInstanceId
protected String
taskId
protected String
url
-
Constructor Summary
Constructors Constructor Description CreateAttachmentCmd(String attachmentType, String taskId, String processInstanceId, String attachmentName, String attachmentDescription, InputStream content, String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attachment
execute(CommandContext commandContext)
protected HistoricProcessInstanceEventEntity
getHistoricRootProcessInstance(String rootProcessInstanceId)
protected 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 String taskId
-
attachmentType
protected String attachmentType
-
processInstanceId
protected String processInstanceId
-
attachmentName
protected String attachmentName
-
attachmentDescription
protected String attachmentDescription
-
content
protected InputStream content
-
url
protected 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 String getHistoryRemovalTimeStrategy()
-
getHistoricRootProcessInstance
protected HistoricProcessInstanceEventEntity getHistoricRootProcessInstance(String rootProcessInstanceId)
-
provideRemovalTime
protected void provideRemovalTime(AttachmentEntity attachment)
-
-