The Content Task is used to execute actions against the Content repository. Available actions support creating, retrieving, updating, moving, and managing content throughout a process. Content can be uploaded during process execution, retrieved from the repository, or stored in the repository for later use.
On the process diagram, the task is represented by a rectangle with a cycle icon:
Many Content Task actions allow you to identify files and folders using multiple input parameters. When more than one valid parameter is provided, the Content service uses the following precedence order to determine which value takes priority:
- nodeId / fileId / folderId
- file / folder
- path / filePath / folderPath
- searchQuery
For actions that accept both file and folder inputs, if both values are provided, the file input takes precedence over the folder input. If multiple parameters are supplied, the highest-priority parameter in the list is used and the remaining parameters are ignored.
The following task types are supported:
| Content Task Type | Description |
|---|---|
| Create Content Task | Executes the CREATE_CONTENT action. Creates files or folders in the Content repository. |
| Fetch Content Task | Executes the FETCH_CONTENT action. Retrieves files, folders, or content information from the Content repository. |
| Fetch Pre-Signed URL | Executes the FETCH_PRE_SIGNED_URLaction. Generates a pre-signed URL that provides temporary access to repository content. |
| Update Metadata Task | Executes the UPDATE_METADATA action. Updates metadata associated with content stored in the repository. |
| Set Content Type Task | Execute the SET_CONTENT_TYPE action. Assigns or updates the content type of repository content. |
| Delete Content Task | Executes the DELETE_CONTENT action. Deletes files or folders from the Content repository. |
| Update Binary Content Task | Execute the UPDATE_FILE action. Replaces or updates the binary content of an existing file. |
| Move Content Task | Execute the MOVE_CONTENT action. Moves files or folders to another location within the repository. |
| Add Permission Task | Executes the ADD_PERMISSION action. Grants permissions to users or groups for repository content. |
| Remove Permission Task | Executes the REMOVE_PERMISSION action. Removes permissions from users or groups for repository content. |
| Read Binary Content Task | Executes the READ_FILE action. Reads the binary content of a file and makes it available to the process. |
| Download File Task | Executes the DOWNLOAD_FILE action. Downloads a file from the Content repository for use outside the repository. |
| Search Content Task | Executes the SEARCH_CONTENT action. Searches for content in the repository based on the specified search criteria. |