Workflow Admin — fixing stuck workflows

Admin guide
Who this is for
Admins responsible for keeping Document Flow running
Time to read
6 min
Prerequisites
You have admin access and the **Workflow Admin** page is visible in your sidebar. If it isn't, your account doesn't have the required permission — ask a senior admin to grant it.

What you'll learn#

  • When and why to use Workflow Admin
  • How to find a stuck workflow and diagnose what went wrong
  • The admin actions available and when to use each
  • A standard diagnostic workflow you can follow when something is reported stuck

What Workflow Admin is#

Most of the time, a document flows through its approval without any hitches: tasks get assigned, approvers act on them, and the document reaches Approved or Rejected. But sometimes things go wrong in ways that stop the workflow silently from a regular user's perspective:

  • A task was assigned to a position that's now vacant (the person left; nobody replaced them).
  • A callback URL pointing to an external system stopped responding.
  • An execution script (an internal step VAT Portal runs between tasks) failed on bad data.

When something like that happens, the workflow engine parks the instance in Maintenance status. Regular users see their document sitting in "Approving" forever. This is where Workflow Admin comes in: it's a diagnostic and repair tool that lets admins see why an instance is stuck and take action to unblock it.


Opening Workflow Admin#

Document Flow → Workflow Admin in the sidebar. The entry only appears if your account has permission for it — specifically the wfl_instance resource. If you don't see it, you don't have access.


The list page — finding the stuck instance#

The Workflow Admin list shows every workflow instance in your company.

At the top of the page:

  • Six status filter tabs: All, Active, Approved, Rejected, FailedToInitiate, and Maintenance. The Maintenance tab is amber-highlighted on purpose — it draws attention because it's usually what you care about.
  • A Document ID search input — useful if a user gave you the document number and you want to jump straight to its workflow instance.

The table shows:

  • Instance ID
  • Document ID
  • Status (color-coded badge)
  • Created by (resolved to the person's name)
  • Created / Updated timestamps
  • Comment (a short note, if any)

Click any row to open its detail page.

Screenshot
workflow-admin-list-maintenance
Placeholder · image will be added
The Workflow Admin list page with the Maintenance filter tab active. The Maintenance tab should be clearly amber-highlighted. The table should show 3–4 instance rows all in Maintenance status, with amber status badges, realistic document IDs, and timestamps from the past few days. Include the Document ID search input at the top for context.

The detail page — diagnosing the problem#

When you click into a stuck instance, you get a detailed view with everything needed to figure out what went wrong.

General Info and Callback URLs#

At the top, two cards show the basics:

  • General Info — Instance ID, Workflow ID, Document ID (clickable — opens the document's detail page in the same tab), current status, any comment that was attached.
  • Callback URLs — the initUrl and completeUrl configured on the workflow. These are the external HTTP endpoints VAT Portal calls when the workflow starts and completes. Misconfigured URLs are a common source of stuck workflows.

Task Instances#

A collapsible table listing every task in the workflow instance, with:

  • Task name, step number (cons), status, who completed it (if anyone), any comment, and an Error column that shows a number > 0 if that task errored.

Per-task actions (if you have update permission):

  • Edit Push Result — configure the webhook that fires after the task completes.
  • Edit Ask Approval — configure the webhook that fires to ask for approval.
  • Trigger Push Result — manually fire the push-result callback for an already-approved task. Only visible for Approved tasks. Useful when the original call failed and you want to retry.

Scripts — the main diagnostic tool#

Screenshot
workflow-admin-detail-scripts
Placeholder · image will be added
The detail page of a Maintenance instance scrolled to the Scripts card, with multiple script entries listed in order. At least one script should be visibly failed — red left border, tinted red background, with a clear error message displayed in red below its details (e.g., "ERROR: No active user found for position ID 42"). Keep the surrounding context (other successful scripts above and below) visible so the failed one stands out.

Scripts are the small internal commands VAT Portal runs while processing a workflow — things like "activate this task", "fire this webhook", "advance to the next step". The Scripts card lists every script that's been executed (or tried) for this instance, in order.

  • Successful scripts appear normally.
  • Failed scripts are highlighted in red — red left border, red tint on the background, error message in red text below the script details.

This is the single most useful card for diagnosis. If the workflow is stuck, one of these scripts failed; the error message usually tells you exactly what went wrong in plain-ish English:

  • "No active user found for position ID 42" → the position is vacant, assign a user to it
  • "URL not reachable: http://erp.internal/api/callback" → the callback endpoint is down or misconfigured
  • "Field value not convertible to number" → data in the document doesn't match what a condition expected

Once you see the error, you know what to fix.

Admin Actions#

The Admin Actions card is where you make changes. The buttons available depend on the instance status and your permissions.

ActionWhen to useConfirmation
Reactivate (green)The usual fix. Available for Maintenance or FailedToInitiate instances. Tries to resume the workflow from where it stopped.Brief confirmation
Reject (orange)Force-reject a stuck instance when there's no realistic way to recover it. Requires a comment (at least 5 characters).Confirmation with comment textarea
Delete (red)Permanently delete the instance. Use only when the workflow was never going to run properly and you want a clean slate. The document itself stays, but its approval history loses this instance.Confirmation dialog
Update URLsFix a misconfigured initUrl or completeUrl on the fly.Dialog pre-filled with current values
Auto-CompleteConfigure auto-complete behavior — status, wait time, and comment. Advanced setting; use when you need the workflow to auto-advance after a period of inactivity.Dialog with three inputs

The standard diagnostic workflow#

Here's the routine that covers most real incidents:

  1. Open Workflow Admin → filter to Maintenance. If nothing's there, the system isn't stuck — check with the user for the actual document ID, search for it, and look at its status.
  2. Click the stuck instance to open the detail page.
  3. Scroll to the Scripts card. Look for the first red-highlighted script. Read its error message.
  4. Fix the root cause — outside Workflow Admin. Examples:
    • Vacant position → go to HR → Positions → Employees, and assign someone.
    • Bad callback URL → go back to the Admin Actions card on this same page and click Update URLs to fix it.
    • User removed → either reassign in HR or Update URLs as appropriate.
    • Condition evaluation error → the workflow design itself may need fixing in the Flow Editor; for the current stuck instance, Rejecting and asking the user to correct/resubmit is often the quickest path.
  5. Click Reactivate. The workflow resumes from the point it stopped. If it runs through cleanly, the status moves out of Maintenance and the stuck document proceeds.
  6. If Reactivate fails (script fails again), read the new error message and go back to step 4.

If the root cause can't be fixed and the instance must end, Reject with a clear comment explaining why. The user can then correct and resubmit as a fresh workflow run.


Per-task admin actions (Push Result / Ask Approval)#

The webhook settings on individual tasks exist for integrations with external systems. Most admins won't touch these — they're set up once when the workflow is designed and then left alone. You might need them when:

  • An external system changed its endpoint and the webhook URL needs updating for this specific instance.
  • A push-result callback originally failed (the external system was down) and now that it's back, you want to retry — use Trigger Push Result on an Approved task to manually fire the callback.

If you're not sure whether to edit these, don't. Talk to whoever set up the original integration.


Common questions#

I can't see Workflow Admin in the sidebar.

Your account doesn't have the wfl_instance permission. Senior admins can grant it from the Users page — see Managing a user's access.

A document is stuck in Approving but I don't see its instance on the Maintenance tab.

Use the Document ID search at the top of the list to find the specific instance. If its status isn't Maintenance, it may still be genuinely in progress — check Scripts and Task Instances to see what step it's on.

Reactivate didn't help — the instance is still stuck.

Open the Scripts section again — there should be a new failed script (possibly the same one, if the root cause wasn't fully fixed, or a later one if it got further than last time). Read the error and fix what it's telling you.

The error in Scripts is cryptic — I can't tell what to do.

Take a screenshot and send it to the system integrator / implementation partner. Script errors reflect what's happening under the hood, and sometimes they need context you don't have.

What's the difference between Reject here and a regular reject from a task?

A regular reject is done by an approver as part of a legitimate approval decision. Reject from Workflow Admin is an administrative force-rejection — used when the workflow can't continue for technical or configuration reasons and you want to formally close the instance so the creator can correct and resubmit.

Is it safe to Delete an instance?

Only delete if you're certain the instance should never have existed (e.g., a test that went wrong, a corrupted draft). Deleting removes it from history permanently. The document itself isn't deleted — but the specific approval attempt record is gone.

The workflow instance's document also looks broken — should I fix both?

Start with the workflow instance. If Reactivating it works, the document will unstick automatically. If you have to Reject or Delete the instance, the document ends up in Rejected status, and the creator can Make Correction and resubmit — giving the workflow a fresh clean start.

How do I prevent these stuck states from happening in the first place?

Two patterns help most:

  • Keep positions assigned to current employees — vacant positions are the #1 source of stuck tasks.
  • Keep callback URLs updated whenever external systems change — stale URLs fail silently until someone submits a matching document.

Keep reading

Related articles

Document Flow — Overview
Creating approval workflows
Using the visual flow editor
Managing a user's access (per-company ACLs)
HR > Managing positions
coming soon
Troubleshooting > My document is stuck in "Approving"
coming soon