Create and test a Standard Workflow
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.
Chapter
Transcript
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.
In Workflow List, I click New Workflow. I give the workflow a clear name before adding cards. This organization opens the Standard builder directly.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.