oo

Using Workflow with Documents and Media

Documents and Media is fully integrated with Liferay’s workflow engine. This means you can define custom review and approval processes for your files. In addition to standard workflow capabilities, Documents and Media also supports using multiple workflows. You can set a default workflow for all document types and configure individual folders to use alternative workflows for specific document types.

Consider a scenario where you’ve defined different document types for marketing, legal, and accounting files. Due to their content, each document type must go through a specific review and approval process. To achieve this, you can create a custom workflow for each type and then configure your Documents and Media folders to use the custom workflows. Also, if you need all other document types to go through the same review and approval process, you can set a default workflow for your Documents and Media root folder.

Enabling a Default Workflow

Follow these steps to enable a default Workflow for all document types:

  1. Open the Documents and Media application in the desired Site or Asset Library.

  2. From the root folder (i.e., Home), click the Actions button (Actions Button) in the Application Bar and select Edit.

    Click the Actions button in the Application Bar and select Edit.

  3. Select the desired Workflow from the dropdown menu.

    Select a Workflow definition.

  4. Click Save.

This enables a default workflow for all document types in your Site or Asset Library. Now whenever users upload or edit files, the Publish button is replaced with a Submit for Workflow button. If needed, you can override this workflow for individual folders. See Enabling Alternative Workflows for Folders and Document Types for more information.

Enabling Alternative Workflows for Folders and Document Types

Follow these steps to enable or disable a workflow for individual folders and document types:

  1. Open the Documents and Media application in the desired Site or Asset Library.

  2. Click the Actions button (Actions Button) for the desired folder and select Edit.

    Click the Actions button for a folder and select Edit.

  3. Under Document Type Restrictions and Workflow, select the desired configuration:

    Use Document Type Restrictions and Workflow of the Parent Folder (parent-folder): Use the parent folder’s configuration. This is the default value.

    Define Specific Document Type Restrictions and Workflow for this Folder (current-folder): Select a custom workflow for individual document types, or select No Workflow to disable the default workflow for individual types.

    Default Workflow for This Folder (current-folder): Select a default Workflow for the current folder. This applies the workflow for all files in the folder, regardless of document type.

    Under Document Type Restrictions and Workflow, select the desired configuration.

  4. Click Save.

This enables the chosen workflows for the selected folder and document types.