Package org.activiti.engine.impl.cmd
Class CreateAttachmentCmd
- java.lang.Object
-
- org.activiti.engine.impl.cmd.CreateAttachmentCmd
-
- All Implemented Interfaces:
Command<Attachment>
public class CreateAttachmentCmd extends Object implements Command<Attachment>
-
-
Field Summary
Fields Modifier and Type Field Description protected StringattachmentDescriptionprotected StringattachmentNameprotected StringattachmentTypeprotected InputStreamcontentprotected StringprocessInstanceIdprotected StringtaskIdprotected Stringurl
-
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 Attachmentexecute(CommandContext commandContext)protected AttachmentexecuteInternal(CommandContext commandContext)protected ExecutionEntityverifyExecutionParameters(CommandContext commandContext)protected TaskEntityverifyTaskParameters(CommandContext commandContext)
-
-
-
Field Detail
-
attachmentType
protected String attachmentType
-
taskId
protected String taskId
-
processInstanceId
protected String processInstanceId
-
attachmentName
protected String attachmentName
-
attachmentDescription
protected String attachmentDescription
-
content
protected InputStream content
-
url
protected String url
-
-
Method Detail
-
execute
public Attachment execute(CommandContext commandContext)
- Specified by:
executein interfaceCommand<Attachment>
-
executeInternal
protected Attachment executeInternal(CommandContext commandContext)
-
verifyTaskParameters
protected TaskEntity verifyTaskParameters(CommandContext commandContext)
-
verifyExecutionParameters
protected ExecutionEntity verifyExecutionParameters(CommandContext commandContext)
-
-