There are two ways in which you can apply a workflow on pages on your site:
This functionality is useful when you want to apply a workflow on a page, or a page and its children, directly from the Pages application. For example, when you create a page outside of an existing workflow scope.
Users need to have the Manage workflow permission assigned in the content module to be able to use this functionality.
Applying a workflow on a page directly also creates a workflow scope that can be edited later.
A workflow scope defines the conditions based on which a workflow will be applied to pages. When creating a workflow scope, you have to specify a page's path and whether you want to include child pages under this path. Then you can narrow down the set of covered pages by specifying some of the following parameters:
The system offers two types of scopes – allowed and excluded. This way you can apply a workflow on a large section of a site and then exclude sections, which you don't want the workflow to be applied on.
If a page matches scopes of multiple workflows, the workflow with the most specific parameters is applied on the page. Scopes are applied with the following priorities, from highest to lowest:
The following table presents the most common scenarios, where scopes from two different workflows (Scope 1 and Scope 2 columns in the table) conflict with each other. The Result column explains which scope takes priority.
Scope 1 setup | Scope 2 setup | Result |
|---|---|---|
This scope covers: /News | This scope covers: /News Page type: Press releases | Press releases under the News page will use Scope 2, the News page itself and its other children will use Scope 1. |
This scope covers: /Products | This scope covers: /Products/Smartphones | All pages under the Products page will use Scope 1, except for the Smartphones page and its child pages, which will use Scope 2. |
This scope covers: /Products | This scope covers: /Products/Smartphones Only specified page | All pages under the Products page will use Scope 1, except for the Smartphones page, which will use Scope 2. However, children under the Smartphones page will use Scope 1. |
Before creating a workflow scope, you need to create a workflow first.
In the Workflows application, edit an existing workflow.
Select the Scope tab.
Choose a site you want the scope to be effective on using the Site drop-down list.
Click New workflow scope.
Define the part of the content tree that you want to be covered by the scope. Click Select next to the This scope covers property.
In the dialog that opens, choose the page you want covered by the scope.
Specify whether you want to cover the page and its child pages, only the page or only its children.
Select if you want the scope to be allowed or excluded. Keep the following behavior in mind when working with exclusions:
Working with exclusions
Exclude workflow from pages in this option applies only to the workflow under which it has been specified and does not override scopes in different workflows.
For example, under Workflow 1, you have "/Products" and its children allowed and "/Products/Smartphones" excluded. Under Workflow 2, however, you have "/Products" and its children allowed and no exclusion specified. The exclusion specified under Workflow 1 will have no effect on the scope of Workflow 2.
Click Save.
Tip
If you want the scope to cover the whole site, or you want to specify only the parameters in the Advanced section, enter "/" (i.e. the path of the root page) in thefield next to the This scope covers property. Make sure that the scope covers the specified page including its children.
You can use these options to further refine the workflow scope. Keep in mind that the steps within the Advanced sections are optional.