A workflow is a sequence of steps describing the life cycle of a document.
Workflows can automate your business processes such as reviewing documents, approving invoices and publishing company policies on an intranet.
In AODocs, each workflow step is called a workflow state.
This article describes how to create a workflow and configure some workflow states:
Automatically generated table of contents
Tip: Learn more: Define workflow states and workflow Transitions (in Assessment of your business need).
Create workflows
1. Access the library administration.
2. Select Workflows.
3. Click the Create workflow button.
4. In the Create workflow dialog:
- select a document class for your workflow
-
enter a name for your workflow – by default the Workflow name is automatically filled in with the document class you selected for your workflow; you can modify the name as you want
Important:
– A workflow must be associated with a document class.
– Each document class can be associated with only one workflow.
Notes:
– When you create a new document class, there is no workflow assigned to it.
– When you create a workflow and assign it to a document class, all documents of the class will have a workflow state from this point on. Any documents that existed before the workflow was created are put in the initial state of the workflow.
– You can’t "detach" a workflow from a class – if you want to stop using the workflow, you have to delete it. In this case, the workflow state information is removed from all existing documents.
– If you want to use the workflow for only a subset of documents in your class, you are recommended to create a special workflow state, with no transition and with the option Hidden from workflow tasks, where you put all the documents that aren’t used in the workflow.
Types of workflow state
There are two types of workflow state:
- Standard state: in this state, the document has one current version.
- Draft state: in this state, the document has two versions:
- Draft version: this version is the one in draft state. It can be viewed and edited by the people defined in the permissions of the draft workflow state.
- Main version: this version of the document remains in the last standard state the document was in. It is read-only for all the people defined in the permissions of the draft workflow state.
Note: Draft states are used to automate check-out / check-in in a workflow.
Configure workflow states
A new workflow contains a single workflow state called Initial State, which is the start point of the workflow. Any new document created in the document class is automatically put in this Initial State.
1. In the workflow configuration interface, rename the Initial State if needed.
2. Click Add new state to create a standard state or Add new draft to create a draft state.
3. Name the workflow state you have just created.
4. Repeat steps 2 and 3 until all you have created all the workflow states you need.
5. You can select any workflow state as the workflow’s initial state by clicking the home button.
Note: The initial state must be a standard state.
Tip: You can re-order the workflow states by drag-and-drop.
Note: If you have configured a view with the Browse by option set to Workflow state, the workflow states in the view will be displayed in the same order as they appear in the workflow configuration screen. Learn more: Configure views in your library
6. You can choose to hide or show the workflow states from your end users by selecting the visibility of the workflow state:
- Always displayed: this is the default — the workflow state is displayed in all user interfaces.
- Hidden from workflow tasks: the workflow state is hidden from the workflow section in the library homepage and the list of pending workflow tasks.
- Never displayed: the workflow state is hidden from the workflow section in the library homepage and from views configured with Browse By or Filter based on workflow states.
Tips:
– The visibility option Never displayed can be useful to hide technical workflow states that trigger reminders or customizations.
– The visibility option Hidden from workflow tasks can be useful for workflow actions that don't follow a timeline.
Learn more: Configure views in your library and Browse the workflow tasks in your library
7. If required, add descriptions for your workflow states. The descriptions appear in the drop-down menu when you force the workflow to a different state without a transition.
8. Click Save and Close.
Delete workflow states
Click the cross on the top right of a workflow state to delete it.
Note: You can’t delete a workflow state if:
– it is the initial state
– it is referenced in a transition from another workflow state
– it is defined in the configuration of a view
– documents in the library are in this workflow state