Kentico allows you to organize and control the process of creating, updating and publishing documents on your website by applying workflow.
In this chapter, you can learn how you can configure and set up workflows on the site. Specifically, you can learn about:
What is workflow?
Workflow is a sequence of steps that define the life cycle of documents. This allows you to ensure the quality of content and design by setting up a reviewing and approval process. In such a process, you can specify the roles that different people have and the places in the document life cycle where specific people can work with documents.
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 who makes corrections and submits the article to the head of the respective department. The head then publishes the document, making it publicly accessible on the website.
You can use workflows together with content locking. Content locking makes sure that only one editor works on a document at a time. This prevents editors overwriting one another's work.
What features are available?
Kentico allows you to use workflows for all documents in the content tree of the Pages application. This also includes the files uploaded to the content tree. Workflows consists of the following:
- The workflow support allows you to organize the process of content creation, updates and publishing on your website.
- Advanced workflow adds support of branching the workflow process based on macro conditions and user decisions. It also allows for automatic manipulation of the documents as they go through the workflow process.
- The versioning support is tightly bound with workflow and allows you to store, view and roll back previous versions of the content.
- Versioning without workflow creates a new version whenever a document is modified, while the whole editing process remains as if the document was using no workflow at all.
- The content locking (check-in/check-out) support allows you to avoid concurrent modifications of the same document by multiple users.
- The preview support allows you to see the content in the context of the site before it's published. This feature is only available for documents that use workflow - you can preview the documents before switching them to the following step.
- The archiving support allows you to archive a document. Such a document is no longer displayed on the website, but it's kept in the content tree and can be re-published at any time later.
The following diagram shows an example of document life cycle with a workflow:
The workflow process consists of any number of custom steps. Only authorized users or roles are allowed to modify and approve/reject a document in a particular step. Any authorized user can switch a document to the following or the preceding step. The current workflow step of a document can be found on its Properties -> Workflow tab. It is also indicated by the document status icons displayed next to documents in the content tree.
What type of workflow should I use?
Kentico offers two types of workflows - basic and advanced.
In a basic workflow, one step is followed by another in a direct sequence. A basic workflow cycle of a document starts in the Edit step, which means the document is newly created or that there are yet unapproved changes in the document. After going through the defined approval steps, the document gets into the Published step. At that point the system makes the last version of the document visible on the live site.
Advanced workflow significantly differs from basic workflow in the way how you can design the flow of steps. You can let a document go through different steps based on various conditions, you can allow editors to choose which step they want the document to be moved to, or you can set timeouts for automatically moving documents from one step to another.