WEBVTT

00:00:00.100 --> 00:00:04.720
All right, I build a complete Standard
Workflow for a training invoice.

00:00:05.860 --> 00:00:09.840
Above one thousand, it should go to a
reviewer and wait for approval.

00:00:10.820 --> 00:00:15.600
I use a dedicated invoice number so this
example cannot select other

00:00:15.600 --> 00:00:16.140
documents.

00:00:17.100 --> 00:00:19.800
In Workflow List, I click New Workflow.

00:00:20.700 --> 00:00:24.280
I give the workflow a clear name before
adding cards.

00:00:25.260 --> 00:00:28.740
This organization opens the Standard builder
directly.

00:00:29.683 --> 00:00:34.403
Under When, I open the card library and
select the document type card.

00:00:35.363 --> 00:00:38.623
I set the operator to Is and choose Invoice.

00:00:39.803 --> 00:00:43.243
This defines the document type that the rule
checks.

00:00:44.266 --> 00:00:47.406
Under And, I add a document field condition.

00:00:48.306 --> 00:00:53.296
I select invoice_id, choose Equals and enter
our training invoice number.

00:00:54.176 --> 00:00:58.806
This extra condition keeps the demonstration
restricted to the intended

00:00:58.806 --> 00:00:59.206
invoice.

00:00:59.975 --> 00:01:02.995
I add another And condition for
total_amount.

00:01:03.965 --> 00:01:06.785
I choose Greater Than and enter one
thousand.

00:01:07.945 --> 00:01:12.005
Exactly one thousand does not satisfy this
condition.

00:01:12.825 --> 00:01:16.805
I use an amount and currency that match the
training document.

00:01:17.558 --> 00:01:21.038
Under Then, I select Assign document to
User.

00:01:21.998 --> 00:01:27.518
I choose Docs User A2, our documentation
test reviewer.

00:01:27.858 --> 00:01:32.338
This action assigns the document without
creating an email notification.

00:01:33.725 --> 00:01:37.465
I add a second action to change the status
to Pending Approval.

00:01:38.205 --> 00:01:40.825
I set Trigger Workflows to false.

00:01:41.805 --> 00:01:46.565
This example does not need another workflow
run when its own action changes

00:01:46.565 --> 00:01:47.225
the status.

00:01:48.266 --> 00:01:51.026
Before saving, I read the full rule again.

00:01:51.986 --> 00:01:57.246
Invoice, the exact training number and an
amount above one thousand must

00:01:57.246 --> 00:01:57.666
match.

00:01:58.626 --> 00:02:01.826
Then the two actions run in the displayed
order.

00:02:02.791 --> 00:02:05.751
I click Save Workflow and check the
confirmation.

00:02:06.708 --> 00:02:11.308
Back in the list, I check that the saved
workflow exists and inspect its

00:02:11.308 --> 00:02:12.248
active status.

00:02:13.188 --> 00:02:15.988
Saving can already enable a workflow.

00:02:16.828 --> 00:02:20.748
I deactivate this training rule while I
prepare the tests.

00:02:21.641 --> 00:02:25.981
In Test Manager, I add a scenario and select
our saved workflow.

00:02:26.921 --> 00:02:32.531
I enter a clear scenario name and upload the
input and expected-result JSON

00:02:32.531 --> 00:02:33.191
files.

00:02:34.171 --> 00:02:39.481
The input contains our invoice number, an
amount of seventeen eighty-five and

00:02:39.481 --> 00:02:40.541
Ready for validation.

00:02:41.491 --> 00:02:44.371
The expected status is Pending Approval.

00:02:45.141 --> 00:02:49.021
I send the scenario, then choose Run Test
from its menu.

00:02:49.781 --> 00:02:52.791
I reopen the list to load the saved result.

00:02:53.250 --> 00:02:56.306
Pass checks the expected document status.

00:02:57.286 --> 00:03:02.466
This sandbox’s card detail panel does not
display the individual messages

00:03:02.466 --> 00:03:06.326
reliably, so I also verify the actual
document.

00:03:07.183 --> 00:03:10.203
Next I test exactly one thousand.

00:03:10.703 --> 00:03:15.563
The invoice number and document type still
match, but Greater Than must be

00:03:15.563 --> 00:03:15.963
false.

00:03:16.913 --> 00:03:20.973
In this fixture, the expected status stays
Ready for validation.

00:03:22.033 --> 00:03:25.733
I save and run this separate scenario, then
check its result.

00:03:26.083 --> 00:03:31.476
I add another scenario with a different
invoice number and an amount above one

00:03:31.476 --> 00:03:31.936
thousand.

00:03:32.496 --> 00:03:35.466
The amount alone must not start the actions.

00:03:36.486 --> 00:03:41.656
I save and run the scenario with the
original status as its expected result.

00:03:42.526 --> 00:03:45.766
These negative cases check the limits of the
rule.

00:03:46.475 --> 00:03:49.725
On Dashboard, I find our training document.

00:03:50.605 --> 00:03:56.605
Its actual status is Pending Approval, and
it is assigned to Docs User A2.

00:03:57.465 --> 00:04:00.605
This confirms the visible result of both
actions.

00:04:01.385 --> 00:04:05.925
The manual test caused this change; it does
not prove automatic processing.

00:04:06.933 --> 00:04:11.813
Back in Workflow List, I activate the tested
rule and check that its switch is

00:04:11.813 --> 00:04:12.313
on.

00:04:12.933 --> 00:04:18.433
Activation should follow a review of
conditions, recipients and test results.

00:04:19.493 --> 00:04:23.673
I switch this training rule off again after
showing the control.
