## Uses of Interface
org.activiti.engine.task.Attachment

- Packages that use Attachment
  Package | Description
  --- | ---
  org.activiti.engine | Public API of the Activiti engine. Typical usage of the API starts by the creation of a `ProcessEngineConfiguration` (typically based on a configuration file), from which a `ProcessEngine` can be obtained. Through the services obtained from such a `ProcessEngine`, BPM and workflow operation can be executed: `RepositoryService`: Manages `Deployment`s `RuntimeService`: For starting and searching `ProcessInstance`s `TaskService`: Exposes operations to manage human (standalone) `Task`s, such as claiming, completing and assigning tasks `IdentityService`: Used for managing `User`s, `Group`s and the relations between them `ManagementService`: Exposes engine admin and maintenance operations, which have no relation to the runtime exection of business processes `HistoryService`: Exposes information about ongoing and past process instances. `FormService`: Access to form data and rendered forms for starting new process instances and completing tasks.

- - ### Uses of Attachment in org.activiti.engine

    Methods in org.activiti.engine that return Attachment
    Modifier and Type | Method and Description
    --- | ---
    `Attachment` | TaskService.`createAttachment(String attachmentType, String taskId, String processInstanceId, String attachmentName, String attachmentDescription, InputStream content)` Add a new attachment to a task and/or a process instance and use an input stream to provide the content
    `Attachment` | TaskService.`createAttachment(String attachmentType, String taskId, String processInstanceId, String attachmentName, String attachmentDescription, String url)` Add a new attachment to a task and/or a process instance and use an url as the content
    `Attachment` | TaskService.`getAttachment(String attachmentId)` Retrieve a particular attachment

    Methods in org.activiti.engine that return types with arguments of type Attachment
    Modifier and Type | Method and Description
    --- | ---
    `List<Attachment>` | TaskService.`getProcessInstanceAttachments(String processInstanceId)` The list of attachments associated to a process instance
    `List<Attachment>` | TaskService.`getTaskAttachments(String taskId)` The list of attachments associated to a task

    Methods in org.activiti.engine with parameters of type Attachment
    Modifier and Type | Method and Description
    --- | ---
    `void` | TaskService.`saveAttachment(Attachment attachment)` Update the name and decription of an attachment

Copyright © 2016 Alfresco. All rights reserved.