Package org.jbpm.services.task.commands

## Class DeleteAttachmentCommand

- java.lang.Object
- - org.jbpm.services.task.commands.TaskCommand<Void>
  - - org.jbpm.services.task.commands.DeleteAttachmentCommand

- All Implemented Interfaces:
    `Serializable`, `org.kie.api.command.Command<Void>`, `org.kie.api.command.ExecutableCommand<Void>`

      public class DeleteAttachmentCommand
      extends TaskCommand<Void>

  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class org.jbpm.services.task.commands.TaskCommand

      `groupIds, targetEntityId, taskId, userId`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `DeleteAttachmentCommand()` |
    `DeleteAttachmentCommand​(long taskId, Long attachmentId)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Void` | `execute​(org.kie.api.runtime.Context cntxt)` |
    `Long` | `getAttachmentId()` |
    `void` | `setAttachmentId​(Long contentId)` |

    - ### Methods inherited from class org.jbpm.services.task.commands.TaskCommand

      `getGroupsIds, getTargetEntityId, getTaskId, getUserId, setGroupsIds, setTargetEntityId, setTaskId, setUserId`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DeleteAttachmentCommand

          public DeleteAttachmentCommand()

    - #### DeleteAttachmentCommand

          public DeleteAttachmentCommand​(long taskId,
                                         Long attachmentId)

  - ### Method Detail

    - #### execute

          public Void execute​(org.kie.api.runtime.Context cntxt)

    - #### getAttachmentId

          public Long getAttachmentId()

    - #### setAttachmentId

          public void setAttachmentId​(Long contentId)