ValystrumHelp
Sign in

Test a workflow before it acts

Plans
Every plan
Where
Approval Workflows, My Approvals
Updated
Checked on
v0.41.2

Put a workflow in Test mode and switch it on: it runs on real events, its gates wait for real decisions, and its actions are only logged.

Steps

  1. Build the workflow switched off (untick switch on now). See Build an approval workflow.
  2. Open its page and select Test mode. The page says "In test mode: every step is logged, nothing is done." and What it does adds: every step is logged, nothing is done, nobody is emailed; a run reads as completed without an effect.
  3. Select Switch on. State reads "on · dry run".
  4. Make the event happen, for example record a finding that matches the workflow's condition.
  5. Watch Approval Workflows: its headline says how many runs wait on a person, and the workflow's row shows "waiting". The gate appears under My Approvals with a test mode badge.
  6. Decide the gate (see Approve or reject a workflow step). The run completes. Open it from the workflow's page to read its trail.

What a test run shows

The run's page tells the story in one line, for example "This run completed in 2 min: Admin rejected it after under an hour, in test mode, so nothing was actually done." Below it: Status, Steps, Took, Gate and Ended, and The trail, each step with its result and time, including how long the gate waited.

What we checked

A test-mode workflow on "when a finding is created", filtered on two finding titles, asked one person within one hour. Two matching findings started two runs; both gates waited under My Approvals; one was approved and one rejected; both runs completed and no remediation item was created.

Make it real

When the test runs read right, select Make it real on the workflow's page. The page says "Out of test mode: its actions are real from the next run." From then on its gates email the people they ask, and its actions act.