Using workflows
What is a workflow?
Workflow is a sequence of steps that define the life cycle of documents. This ensures the quality of content and design by setting up a reviewing and approval process. In such a process, individual roles and users can work with documents in certain steps of their life cycle (such as Edit, Published, Archived, …).
An example of a simple workflow process is a website that publishes scientific articles. An author writes an article and sends it for approval to an editor. The editor makes corrections and submits the article to the head of the respective department. The head then publishes the document, thus making it publicly available to read on the website.
Using workflows
This topic describes how you can manage documents under a workflow.
The following tasks refer to buttons in the Pages application by their default captions, e.g., Submit for approval, Approve, Reject. However, the caption texts are customizable, so you may not always see the same buttons in the user interface.
Applying a workflow on a document
This functionality is useful when you want to apply a workflow on a document, or a document and its children. For example, when you create a document outside of an existing workflow scope.
You need to have the Manage workflow permission assigned in the content module to be able to use this functionality.
To apply a workflow on a single document or a document and its children:
- In the Pages application, navigate to the document that you want to apply a workflow on.
- Click Apply workflow. A dialog box opens.
- Select the workflow that you want to apply on the document.
- Choose from the following options:
To this document only
To this document and its children
Applying a workflow on a document directly also creates a workflow scope that can be edited later.
- Click Apply workflow.
Submitting a document for approval
When a document is in the Edit step, you can submit it for approval to move it to the next step.
- In the Pages application, navigate to the document that you want to submit for approval.
- Click Submit for approval. The document will be moved to the next step in the workflow process.
Submitting a document for approval with a comment
To submit a document for approval and add a comment for the person who will be approving it, follow these steps:
- In the Pages application, navigate to the document that you want to submit for approval.
- Click (…) icon next to the Submit for approval button and then click Comment and submit for approval. A dialog box opens.
- Enter your comment and click Approve. The document moves to the next step in the workflow process.
Viewing documents waiting for your approval
To view documents that are in an approval step, which you’re an operator of, you can use the Pending page in My desk.
- Open the Pending documents application.
- (Optional) Click Navigate to document to view the current version of the document on the live site.
- (Optional) Click Edit to make changes to the document and approve or reject it.
Approving and rejecting a document
When a document reaches a step that requires user interaction, you can approve the document, or, if settings of the step permit, reject it.
- Navigate to the document you want to approve or reject.
- (Optional) Make changes to the document.
- (Optional) Disable the Send notification e-mails checkbox to prevent the system from sending e-mails to users involved in the next step.
- Approve or reject the document. Note that if the step that follows is the Published step, the default text of the Approve button changes to Publish.
- To approve the document without commenting on the approval, click Approve.
- To reject the document without commenting on the rejection, click Reject.
- To approve the document and make a comment, click the arrow icon next to the Approve button, then click Comment and approve. Enter your comment into the dialog box and click Approve.
- To reject the document and make a comment, click the arrow icon next to the Reject button, then click Comment and reject. Enter your comment into the dialog box and click Reject.
Publishing a document
When a document is published, its most recent version will be made available to visitors on the live site. You can publish documents in one of the following ways:
- Manually moving through the whole workflow process
- Directly publishing if the current step allows it
- Publishing multiple document at once
Manually moving through the whole workflow process
- Navigate to the document that you want to publish.
- Repeatedly approve the document until it is in the Published step.
Directly publishing a document
When a document is in a standard approval step and the settings of the step allow it, you can publish the document immediately. To do this, a direct approval path must exist in the workflow process. Direct publishing won’t work if your workflow process contains user decisions.
- Navigate to the document that you want to publish.
- Click the arrow icon next to the Approve button, then click Approve until published.
Publishing multiple documents at once
You can publish entire sections of your website using the List mode.
- In the Pages application, switch to the Listing mode.
- Navigate to the document, which is a parent of the documents that you want to publish.
- Select the documents you want to publish. You have two options:
- Check the boxes next to documents you want to publish.
- Select All documents in the drop-down list below the document list.
- Select Publish in the drop-down list marked (select an action) and click OK to confirm. You will be redirected to a page with the list of documents to be published.
- (Optional) Adjust the following settings:
- Publish also all child documents
- Perform Undo check-out for checked out documents - if checked, all documents that are checked out will be checked in and the changes made during the last check-out will be discarded.
- Click Yes to start publishing the documents.
Archiving a document
When you archive a document, it stays in its location in the content tree, but it isn’t visible on the live site. You can archive documents in one of the following ways:
- Manually archiving
- Archiving multiple documents at once
Manually archiving a document
When a document reaches a step that is immediately followed by the Archived step, you can click the Archive button to archive the document.
Archiving multiple documents at once
You can archive entire sections of your website using the List mode.
- In the Pages application, switch to the Listing mode.
- Navigate to the document, which is a parent of the documents that you want to archive.
- Select the documents you want to archive. You have two options:
- Check the boxes next to documents you want to archive.
- Select All documents in the drop-down list below the document list.
- Select Archive in the drop-down list marked (select an action) and click OK to confirm. You will be redirected to a page with the list of documents to be archived.
- (Optional) Adjust the following settings:
- Archive also all child documents
- Perform Undo check-out for checked out documents - if checked, all documents that are checked out will be checked in and the changes made during the last check-out will be discarded.
- Click Yes to start archiving the documents.
Viewing a document’s workflow history
For all documents under a workflow, the system records every move from one step to another. That means that you can review all the workflow actions that were performed on the document, the users who performed them and comments.
To view the workflow history of a document, select it in the content tree of the Pages application and navigate to Properties -> Workflow.
Restarting a workflow cycle
When a document reaches the Published or Archived step (whichever comes first), it completes its workflow cycle. That means that the document has gone all the way from the Edit step through the whole process to the final step. To start a new cycle and put the document back to the edit step, do the following:
- If you’re using basic workflow, open the document in the Pages application, make changes to it and click Save. This will create a new version of the document.
- If you’re using advanced workflow, click Create new version.
When you start a new cycle, the system re-evaluates workflow scopes that cover this document and chooses the workflow with the highest priority.
Removing documents from a workflow
If you want to remove documents from an existing workflow. That is, documents that are under a workflow scope, and that are in any of the steps belonging to the workflow, then proceed as follows:
- Open the Workflows application.
- Edit () the workflow from which you want to remove the document.
- Switch to the Documents tab.
- Select the documents that you want to remove from the workflow.
- Choose the Remove workflow and keep currently published data option in the second drop-down list under the list of documents.
- Click OK.
Note that this action does not remove the document from under the workflow scope. It may become part of the workflow again when modified.