public class CreateAttachmentCmd extends Object implements Command<Attachment>
Modifier and Type | Field and 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 and Description |
---|
CreateAttachmentCmd(String attachmentType,
String taskId,
String processInstanceId,
String attachmentName,
String attachmentDescription,
InputStream content,
String url) |
Modifier and Type | Method and Description |
---|---|
Attachment |
execute(CommandContext commandContext) |
protected HistoricProcessInstanceEventEntity |
getHistoricRootProcessInstance(String rootProcessInstanceId) |
protected String |
getHistoryRemovalTimeStrategy() |
protected boolean |
isHistoryRemovalTimeStrategyStart() |
protected void |
provideRemovalTime(AttachmentEntity attachment) |
protected String taskId
protected String attachmentType
protected String processInstanceId
protected String attachmentName
protected String attachmentDescription
protected InputStream content
protected String url
protected ExecutionEntity processInstance
public Attachment execute(CommandContext commandContext)
execute
in interface Command<Attachment>
protected boolean isHistoryRemovalTimeStrategyStart()
protected String getHistoryRemovalTimeStrategy()
protected HistoricProcessInstanceEventEntity getHistoricRootProcessInstance(String rootProcessInstanceId)
protected void provideRemovalTime(AttachmentEntity attachment)
Copyright © 2021. All rights reserved.