Workflow is the representation of the Business Process. The Workflow contains the Manula Activities, Automated Activities,.. etc.
Workflow Template and Workflow Instance
The workflow template is created using the Process Builder or Workflow Manager (Prior to 6.X). The details of the template are stored in the dm_process and dm_activity objects.
The runtime instance of the Template is the workflow. The details of the workflow are available in the dm_workflow, dmi_workitem, dmi_package .. etc.
The document(s) attached to a workflow are called packages. The type of document that can be attached to the workflow is defined during the template creation. More than one document can be attached to a workflow. A single document can be attached to more than one workflow.
A simple Author-Reviewer-Publisher workflow example is shown below along with the rejection flow.
The relationship between the dm_process, dm_workflow and important objects are explained below.
Lifecycle
The Lifecycle is a simple representation of Business Process. The workflow is more sophisticated when compared to Lifecycle.
At a point of time only one Lifecycle can be attached to a document.
The Lifecycle is created using the composer. The template of the Lifecycle is stored in the dm_policy object. The relation between the dm_document and dm_policy is given below.