LogicalDOC's workflow engine routes documents through review and approval steps that you design yourself: who reviews, what happens when a document is rejected, when reviewers get reminded, and where the approved document ends up. Every event is recorded in the workflow history.
Workflow is available in LogicalDOC Enterprise and LogicalDOC Cloud.
Try the interactive demoWatch the videoBook a workflow demo
How an approval workflow runs in LogicalDOC
Below is a typical contract approval process, built in the web-based workflow designer. The same pattern applies to invoices, purchase orders, quality procedures, technical drawings and HR documents.
And if a reviewer doesn't respond?
Each task can have a Due date that sets its maximum duration. Once it has passed, LogicalDOC emails reminders to the people involved at the interval set in Remind time, and a script can run as soon as the task is overdue. If the reviewer is away, the task can be reassigned to another user from the workflow dashboard, either on its own or together with all their other open tasks. Reassigning tasks
Automation example: what happens when a contract is approved
When the workflow reaches the Approved end status, LogicalDOC runs the script attached to it. Scripts are written in Apache Velocity and can use tools such as DocTool and MailTool. For every document in the workflow, this one:
- writes the approval in the application log;
- moves the contract to the /Contracts/Approved folder;
- emails the approved contract to the Contracts team.
As written, the script sends one email per document. A small change to the loop sends all the documents in a single message.
The script
## Contract Approval Workflow
## Automation executed when a contract is approved.
##
## Actions:
## 1. Log the approval.
## 2. Move the contract to the Approved folder.
## 3. Email the approved contract to the Contracts team.
#set($recipient = "contracts@example.com")
#set($subject = "Contract Approved - LogicalDOC")
#set($message = "Hello,<br/><br/>A contract has been approved through the LogicalDOC workflow.<br/><br/>Please find the approved document attached.<br/><br/>Best regards,<br/>LogicalDOC Workflow Automation")
#foreach($doc in $documents)
## Log the approved contract
$log.info("Contract approved - Document: $doc.title (ID: $doc.id)")
## Move the contract to the Approved folder
$DocTool.move($doc, '/Default/Contracts/Approved', '_system')
## Send the approved contract by email
$MailTool.sendDocument($doc, null, $recipient, $subject, $message)
#end
Try the interactive demo: workflow approvals and annotations
Click through a complete approval in LogicalDOC at your own pace, with no sign-up required: from choosing the workflow to approving the document and annotating it for future readers.
What the demo shows
- Choose the workflow. In Administration > Document metadata > Workflow, open the approval workflow template in the designer.
- Start it on a document. In the Documents area, select a file (a customer complaint, in the demo), click Start workflow and pick the approval process.
- Follow its progress. In the Workflow section of the dashboard, open the running instance to see the participants, the current step, the Completion Diagram and the appended documents.
- Check the document status. Back in the folder, the document's Workflow Status shows the step it has reached; you can also add it as a column in the documents list.
- Approve. The reviewer opens the task from the dashboard and completes it with the Approve transition. The new status and the approval history appear in the document's details.
- Add a note. The reviewer records the approval details in a formatted note attached to the document, visible to the whole team.
- Annotate the document. Highlights and annotations mark the sections, dates and figures behind the decision, and flag sensitive information for future readers.
Watch the video walkthrough
Prefer to watch? The same approval in a 4-minute video, with a chapter for each stage.
Chapters
- 0:00 Introduction
- 0:12 The approval workflow template
- 0:33 Starting the workflow on a document
- 0:58 Following progress from the dashboard
- 1:33 Workflow status on the document
- 1:49 Approving the document
- 2:07 Approval history and the Workflow Status column
- 2:34 Adding a note
- 3:23 Annotating the document
See it in action
Workflow features
Design
- Web-based graphical designer, no extra software to install
- Tasks, Fork and Join for parallel steps, and End status elements
- Any number of named transitions per task, not just yes/no decisions
- Candidates set statically (users, groups) or dynamically from a User attribute of the document
- Versioned workflow templates, with XML import and export to move them between LogicalDOC installations
- Security settings that decide who can launch and who can edit each workflow, and supervisors who can follow every instance
Execution and automation
- Automatic start through folder triggers, which link document templates to workflows
- Automation scripts when a task is created or assigned and when a transition is taken
- Validation scripts that stop a task from being completed until its conditions are met
- Fully automatic tasks with no human interaction, for example to route incoming mail
- Due dates with email reminders and an optional script that runs when a task is overdue
- Email notifications on assignment and reminders, with customisable message templates (for example, to add confidentiality or legal statements)
Control and audit
- Workflow dashboard with tasks assigned to me, tasks I can take ownership of and tasks in workflows I supervise
- Workflow Status property shown on every document in a process
- Notes on each task, optionally required at completion
- Completion diagram and a full event history for every workflow instance
- Notes and visual annotations on the document, to record why it was approved or rejected
Why teams use workflow for approvals
Clear responsibility
Each step has a named owner, and the dashboard shows who a document is waiting for.
Consistent procedures
Every document of the same type follows the same approval path.
Fewer missed steps
The next task is assigned automatically instead of depending on someone remembering to forward an email.
Audit-ready records
Notes, versions and the workflow history show who reviewed, rejected or approved each document, and when.
Ready-made workflow samples
The Workflow Guide includes sample workflows you can download and import as a starting point:
Basic Approval Multi Approval Invoice Approval Version Control Complaint Rationale Purchasing Oversea Mail Processing
Multi Approval runs three parallel approvers, and a single rejection ends the process; Version Control requires manager approval and supervisor confirmation.
Edition availability
Workflow and Automation are included in:
LogicalDOC Enterprise LogicalDOC Cloud
They are not part of the Community Edition.
For a feature-by-feature view of every edition, see the comparison matrix.
Frequently asked questions
- Can a workflow start automatically when a document is added?
Yes. A workflow trigger in a folder links a document template to a workflow: when the specified event occurs in that folder, the workflow starts for the matching documents. Triggers can be applied to all subfolders too.
- Can I assign a task to a group instead of a single person?
Yes. All members of the group are notified, and the first one to take ownership works on the task. Reviewers can also be taken from a User attribute of the document itself.
- Can several people approve the same document in parallel?
Yes. A Fork starts parallel approval tasks and a Join waits until they are all complete. The Multi Approval sample shows a process in which a single rejection ends the workflow.
- What happens when a document is rejected?
The workflow follows the transition you designed for rejection, usually back to the author with a revision task. You can require reviewers to write a note before completing the task, and the revised file is stored as a new version.
- Do I need to write code to create a workflow?
No. Workflows are drawn in the graphical designer. Automation and validation scripts are optional, for steps such as moving documents or checking a condition before a task can be completed.
- Is workflow available in the Community Edition?
No. Workflow is part of LogicalDOC Enterprise and LogicalDOC Cloud.
See your approval process in LogicalDOC
Tell us which documents you approve today (contracts, invoices, procedures or drawings) and we'll show you how the workflow would run, from submission to final approval.
Book a workflow demoStart a 30-day free trial
Technical details: Workflow Guide