For the complete documentation index, see llms.txt. This page is also available as Markdown.

Standard Workflow

The Standard Workflow builder is the linear, card-based editor for automating document processing. A workflow is made of three groups of cards — When (the trigger), And (additional conditions) and Then (the actions to run). When a document matches the When/And conditions, the Then actions run automatically.

Create and test a Standard Workflow

Video: Building a Standard workflow · 1:09 · Captions (WebVTT)

Video: Testing cards in a Standard workflow · 0:51 · Captions (WebVTT)

Create a complete Standard Workflow in the real DocBits interface: match the invoice, check its number and an amount above 1000, assign a reviewer and change the status. Save the rule, run three test scenarios and confirm the document’s actual result.

Watch with subtitles · Open video · Subtitles (WebVTT) · Transcript · 4:24

Chapters and transcript
Chapter
Start

What this workflow does

Name the workflow

When: document type

And: invoice number

And: amount above 1000

Then: assign a reviewer

Then: change the status

Check and save

Check the saved rule

Prepare the test scenario

Run the positive test

Test the boundary value

Test another invoice number

Check the document result

Enable the tested rule

What this workflow does

All right, I build a complete Standard Workflow for a training invoice. Above one thousand, it should go to a reviewer and wait for approval. I use a dedicated invoice number so this example cannot select other documents.

Name the workflow

In Workflow List, I click New Workflow. I give the workflow a clear name before adding cards. This organization opens the Standard builder directly.

When: document type

Under When, I open the card library and select the document type card. I set the operator to Is and choose Invoice. This defines the document type that the rule checks.

And: invoice number

Under And, I add a document field condition. I select invoice_id, choose Equals and enter our training invoice number. This extra condition keeps the demonstration restricted to the intended invoice.

And: amount above 1000

I add another And condition for total_amount. I choose Greater Than and enter one thousand. Exactly one thousand does not satisfy this condition. I use an amount and currency that match the training document.

Then: assign a reviewer

Under Then, I select Assign document to User. I choose Docs User A2, our documentation test reviewer. This action assigns the document without creating an email notification.

Then: change the status

I add a second action to change the status to Pending Approval. I set Trigger Workflows to false. This example does not need another workflow run when its own action changes the status.

Check and save

Before saving, I read the full rule again. Invoice, the exact training number and an amount above one thousand must match. Then the two actions run in the displayed order. I click Save Workflow and check the confirmation.

Check the saved rule

Back in the list, I check that the saved workflow exists and inspect its active status. Saving can already enable a workflow. I deactivate this training rule while I prepare the tests.

Prepare the test scenario

In Test Manager, I add a scenario and select our saved workflow. I enter a clear scenario name and upload the input and expected-result JSON files. The input contains our invoice number, an amount of seventeen eighty-five and Ready for validation. The expected status is Pending Approval.

Run the positive test

I send the scenario, then choose Run Test from its menu. I reopen the list to load the saved result. Pass checks the expected document status. This sandbox’s card detail panel does not display the individual messages reliably, so I also verify the actual document.

Test the boundary value

Next I test exactly one thousand. The invoice number and document type still match, but Greater Than must be false. In this fixture, the expected status stays Ready for validation. I save and run this separate scenario, then check its result.

Test another invoice number

I add another scenario with a different invoice number and an amount above one thousand. The amount alone must not start the actions. I save and run the scenario with the original status as its expected result. These negative cases check the limits of the rule.

Check the document result

On Dashboard, I find our training document. Its actual status is Pending Approval, and it is assigned to Docs User A2. This confirms the visible result of both actions. The manual test caused this change; it does not prove automatic processing.

Enable the tested rule

Back in Workflow List, I activate the tested rule and check that its switch is on. Activation should follow a review of conditions, recipients and test results. I switch this training rule off again after showing the control.

How to access

Open Workflow Dashboard → Workflow List, then click New Workflow to create a new Standard workflow, or click an existing workflow to edit it.

Workflow list and import actions.
Workflow list and import actions.

The When / And / Then model

Standard Workflow canvas with When, And and Then cards
The Standard Workflow canvas. This example triggers on invoices in a sub-organization and assigns them to a user.
  • When — the trigger that starts the workflow (e.g. Document type is Invoice).

  • And — extra conditions that must also be true (e.g. Document is part of sub-organization). Leave empty to run on every match of the When card.

  • Then — the actions to perform (e.g. Assign the document to the user, create a task, call an API, send an email).

Adding cards

Click Add Card in any group to open the card library. Cards are organised by category so you can find the building block you need:

Add Card library grouped by category
The Add Card library — condition cards, comparison cards, action cards and more, grouped by category.

Save with Save Workflow, or save the layout as a reusable template with Save Template.

Workflow Templates

The Templates button in the workflow toolbar opens the Workflow Templates library, where you can manage the templates that are saved in your organization:

Workflow Templates dialog listing templates with Name, Updated By, Last Modified On and Actions columns, with the Show default Templates option enabled
The Workflow Templates dialog — saved templates and, with Show default Templates enabled, the built-in default templates.
  • The list shows each template's Name, Updated By and Last Modified On.

  • Turn on Show default Templates to include the built-in default templates in the list.

  • Use the row's Actions menu to Duplicate a template, or to Delete a saved template — the built-in defaults cannot be deleted.

  • Click a template row to open it in the Template Designer, which uses the same When/And/Then canvas as the Standard Workflow designer. Save your changes with Save Template.

  • To start a new workflow from a template, open the template in the designer, adjust the cards, and save it as a workflow with Save Workflow.

Next steps

  • See what each card does in the Cards section.

  • Combine cards into proven solutions with the Workflow Pattern Guides.

  • For branching flows with parallel paths (Wait ALL / Wait ANY / OR), use the Advanced Workflow builder.

Last updated

Was this helpful?