Skip to content
Reference

The workflow page

Every workflow has one page with five tabs. Overview shows its last 24 hours, Build edits it, Runs lists every message it handled, Versions reviews and deploys a version (as a canary or on a schedule too), and Settings holds ownership, delivery, data, alerts and the danger zone.

On this page

Each workflow has one page at /workflows/{id}. Open it from Workflows. The page has five tabs: Overview, Build, Runs, Versions and Settings. The tab is in the address (?tab=runs), so you can link to it. Without ?tab= the page opens on Overview.

The header

The header stays above every tab.

PartWhat it shows
Name and idThe workflow's name, then its short id and the live version, for example wf_7c21e0 · v4. While a canary runs it reads wf_7c21e0 · v4 + v5 canary.
StatusActive, Failing, Waiting for first message, Needs approval, Draft or Paused.
Pending pillv5 needs approval or v5 approved while a newer save waits, Canary 10% while a canary runs. It opens Versions.
Receiving switchTurns the workflow on or off. Turning it off asks first (Turn off); messages in flight finish. A workflow that was never deployed asks you to deploy it first (Go to Deploy).
Tab badgesRuns shows how many runs failed in the last 24 hours. Versions shows 1 while a save is not deployed.

Choose ? at the bottom of the page for the page's help, or take its three-step tour. See Guided tours.

Overview

Overview shows the last 24 hours of the workflow. It reads the workflow's own runs only, so a busy neighbour does not slow it.

The Overview tab: five figures, the hourly chart, the Open issue card and the step list, with Deploy, Source, Destinations and Recent runs on the right

FigureWhat it counts
MessagesRuns in the last 24 hours, and the hourly average.
ErrorsFailed runs.
p95 end to end95% of runs finished faster than this.
RetriesRuns that needed a retry, or none needed. One retried run reads like Epic 503, then 201.
Needs actionMessages of this workflow waiting on Messages › Needs action, or nothing waiting. It shows — when the count is too large to read in full.

Below the figures:

  • Messages · last 24 h has one bar per clock hour, errors in red.
  • Open issue groups the failures by the step they failed at and the error code, and says what to do next. A code table miss names the table and the missing value: "Ward code 5E isn't in facility_locations." The value is never shown when it comes from a patient field. View runs opens Runs on Failed with the newest failed run open. Replay in builder opens Build with the failed message. Review v5 fix appears only when a newer, undeployed version changes the failing step, and opens that version in Versions. A failure that was replayed, retried successfully or discarded since no longer holds the card up.
  • Steps · last 24 h lists each step with its count, its p95 (as a bar against the slowest step) and its errors. Choose a step to open it in Build.

On the right:

CardWhat it shows
DeployLive (v4 · since Oct 21) and Next (v5 draft · needs approval), or the canary (v4 · v5 on 10%, promote 15:10). Open versions.
SourceThe trigger: Listening or Not listening, how long a tunnel has been up (Up · 13 d), and the Last message.
DestinationsEach destination with its router branch and queue (Admit branch · queue empty): Delivering, Some failed, No messages or Not answering, with the next step to try as its tooltip.
Recent runsThe 6 newest runs. Choose one to open it in Runs, or All runs for the list. A run that reached no destination says Filtered.

The validation panel sits below, as in the builder.

Build

Build is the workflow builder, with its own toolbar. See Build a channel. Leaving Build with unsaved changes asks first. A step link from Overview (?tab=build&step={id}) opens that step.

Runs

Runs lists the last 24 hours of runs, newest first. The list refreshes on its own every 15 seconds (Last 24 h · live).

ColumnWhat it shows
TimeWhen the run started.
MessageThe message control id.
EventThe message type, for example ADT^A01.
RouteThe destinations the run went to.
ResultWhat happened, in a few words: Delivered · Epic 201, GCS, Delivered on retry 2 · Epic 503 first, Failed at 3 · no entry for 5E, Filtered · A03 not routed.
TookHow long the run took.

The chips All, Failed, Retried and Filtered show their counts. Search takes a message id, an MRN or a visit number. Every search is written to the audit log (message.searched), because an MRN is PHI.

The run panel

Choose a run to open its panel on the right. Its header reads like 14:02:11 · Oct 19 · run ex_4f2a91 and how long it took. Opening a run is audited (execution.viewed).

A failed run's panel: the trace, the failed step with its cause, and the masked message as received

PartWhat it shows
TraceEach step on a time line. Retries are amber, failures red, and steps that never ran are dimmed.
FailureThe step that failed, the cause (No entry for “5E” in facility_locations.) and the next step to try. "The message was NACKed with AE and kept for replay." appears only when the sender really got a NACK.
Message as receivedThe message, with patient fields masked (D•••^J•••). See Show PHI.
ACK returnedThe ACK the sender got, following the trigger's ACK mode. Nothing shows for a message that did not come in over MLLP.
Ran onThe version and the engine instance the run used.
Called by runFor a run started by a Call workflow step, a link to the caller.

At the bottom:

  • Open in builder opens Build with this run's message.
  • Reprocess runs the message again through the workflow as it is now, after a confirmation. Adapters are called, so data reaches connected systems again. If the run partly delivered, only the destinations that failed are sent again. The original run stays in the history. See Replay.
  • Save as test case saves the message as a test case, which every deploy then dry-runs. See Save test cases.

While a run is pending, running or waiting, the panel reads it again every 3 seconds, for up to 5 minutes.

Step input and output, the connection each step used and mapping warnings are in Messages: open the message there and choose Steps. See Monitor and recover.

Show PHI

The message is masked until you ask for it. Choose Show PHI and a reason: Troubleshooting, Patient request or Audit. The engine records the reveal first, and only then sends the message unmasked. The panel then says PHI visible · reason: Troubleshooting · logged.

Hide PHI, closing the panel or opening another run masks it again. Each reveal writes one phi.revealed audit event with the reason and a keyed hash of the patient's MRN, never the value. If the reveal cannot be recorded, the message stays masked. Viewers see Show PHI turned off, and the API refuses their reveal with 403.

Versions

Every save is a version. Saving never changes what production runs: the engine keeps running the deployed version until you deploy a newer one. Versions has three columns: the version list, the diff and the deploy panel.

The Versions tab: the version list, the diff grouped by step, and the deploy panel with its checks

The version list

Newest first. Each version shows its change note, written when it was saved, and who saved it and when (CJ · Oct 14). The live version adds how long it has run (· 8 days live).

TagMeans
DraftThe newest save, not deployed yet.
ApprovedThe newest save, approved by a second admin.
Needs approvalIt runs without ever having been deployed through the checks.
LiveThe version production runs.
Canary 10%The version a running canary uses.
PreviousThe version the newest deploy replaced.
Rolled backA version a rollback replaced.

Choose a version to see it in the diff and the deploy panel.

The diff

The diff compares the selected version with the one before it (v5 compared with v4), one card per changed step. + lines were added, ~ lines changed (old → new) and − lines were removed. Adapter profiles show by name.

The deploy panel

The panel is titled Deploy v5. It lists the checks, in this order:

CheckPasses when
Test casesEvery saved case passes (5 of 5 test cases pass · including Unknown ward 5E). Only shown when there are cases. Deploy dry-runs them again.
Test runA test or run passed after this version was saved (Test run passed).
ValidationNo validation errors (no steps need setup · profiles resolve).
Dry run against the last 50 messagesChoose Run. It runs stored messages through the version on the server and returns counts only: 50 delivered · 0 changed outputs outside Map ward.
ApprovalA second admin approved (Approved by Demo Admin). Request approval, then another admin's Approve.

The deploy button stays off until a second admin approves, and says why under it (Needs a second admin's approval first, Needs a passing test first). Once everything passes it reads Approved · ready to deploy.

The dry run compares each message's output from the deployed version and the new one. Values a workflow makes up on each run, such as the time in MSH-7, a generated MSH-10 and FHIR resource ids, are left out. If an output changed outside the steps the change touches, the check shows ! and Deploy waits: Dry run changed outputs · review first. The hold stays after a reload, until the version, the deployed version or the live save changes.

After the deploy, the panel reads v5 is live, then All messages run on v5 · 0 errors since deploy · v4 kept for one-click rollback. Messages already in flight finish on the version they started with.

Canary and scheduled deploy

Rollout and When sit above the deploy button.

ChoiceOptions
RolloutCanary at 10, 25 or 50% of messages, or All at once. A canary needs a deployed version to run beside, so the first deploy is all at once.
WhenNow, or Schedule with Deploy at. Schedule starts at the workflow's quietest hour of the last 24 hours, in your time zone: Tonight · 22:00 CDT · low traffic.

The button follows the choice: Start canary at 10%, Schedule v5 for 22:00 or Deploy v5 to all messages.

A canary runs its share of messages, chosen by message id, on the new version beside the deployed one. Every minute the engine checks it. After 30 minutes with an error rate under 1% it promotes the canary to 100%. At 1% or more it rolls the canary back on its own. While it runs, the panel reads Canary · v5 on 10% of messages, with 40 messages so far · 0 errors · promotes automatically at 15:10.:

  • Promote to 100% deploys it to every message now, after a confirmation.
  • Roll back to v4 sends every message to v4 again, after a confirmation. v5 goes back to a draft and needs a new approval.

A scheduled deploy reads v5 deploys to all messages at Tonight · 22:00 (or starts a canary at 10%), with Cancel schedule. A later save cancels it.

Canary and scheduled deploys are on by default. Set CANARY_DEPLOY_ENABLED=false to turn them off. See Environment variables.

Roll back

Under the deploy panel, Roll back to v4 offers the version before the deployed one. To roll back further, select an older version in the list first. It asks first (Roll back), then redeploys the older version. Messages in flight finish on the running version. Nothing is deleted: the version you rolled back from stays in the list, and you can deploy it again later.

Below the rollback:

The ··· menu

The ··· button (More version actions) at the top right of Versions holds:

ItemWhat it doesRole
Promote to another workspaceOpens the promotion dialog. See Environments and promotion.Admin
EnvironmentsEach workspace's deployments of this workflow, and Roll back to v1 per workspace.Everyone
Publish to marketplacePublishes the workflow as a template, with no PHI.Admin
Sample and dry runThe saved sample, its fields and a dry run that sends nothing.Everyone
Run with a test messagePastes a message and runs the workflow for real: adapters are called. Receiving must be on.Operator

Settings

Settings has five sections, each with a short note beside its fields. A change saves as you make it (Saving…, Saved).

The Settings tab: General, Delivery and Data, each with its fields beside the section's name

SectionFields
GeneralName, Owner (anyone who may work in the workspace), Tags (up to 10, lower case) and Description. Owners get alerts first.
DeliveryWorkflow retries (Edit in Build), Ordering (per sender · FIFO for MLLP), Duplicate messages (drop by MSH.10 · 24 h), Max in flight and the Senders table.
DataRetention (30 days, then bodies deleted), Encryption (on · engine key, rotated Oct 1), PHI in logs and Sample access, above the Encrypt stored messages switch and the retention setting.
AlertsError rate, Silence, Queue depth and Certificate from the workflow's own alert rules, then the other rules that watch it, and Manage alert rules.
Danger zoneExport: Export JSON and Mirth XML. Delete workflow, after a confirmation.

A few details:

  • Owner, Tags and Max in flight save on the workflow, with no new version. Ordering and Duplicate messages are trigger settings, so a change saves a new version that applies once it is deployed.
  • Max in flight (1 to 64, empty for no limit) caps how many of the workflow's queued runs and polls run at once, across every engine instance. Other workflows keep flowing. A manual run is not held back, but it counts.
  • An alert that is not set reads off, with Add. Add creates the alert for this workflow, emailed to its owner. It needs an Owner with an email address and a mail transport on the engine.
  • An export carries no PHI. The saved sample and test cases made from real messages stay behind, and text copied from those messages into the workflow is replaced by [redacted]. A toast says what was left out.
  • Deleting a workflow removes it with its versions. Its past runs stay in the run history and the audit log.

Who can do what

The page follows the permission matrix. A control you cannot use is shown turned off, with the reason as its tooltip.

ActionRole
Read every tabViewer
Read the message as receivedOperator
Show PHI, Reprocess, Save as test caseOperator
Receiving, Settings fields, Add an alert, Delete workflowOperator
Request approval, run test casesOperator
Approve, deploy, override, roll back, canary, schedule, promote, publishAdmin
Retention and Encrypt stored messagesAdmin

Older pages of a workflow now open a tab of this page, so bookmarks still work.

Old addressOpens
/workflows/{id}/detailsOverview
/workflows/{id}/editBuild
/workflows/{id}/versions, /workflows/{id}/diffVersions, keeping the compared versions
/executions/{id}, /executions/{id}/liveRuns, with the run's panel open (?tab=runs&run={id})
/executionsMessages, with the same workflow, source, time range and search

Over the API

CallWhat it does
GET /api/workflows/{id}/overviewThe Overview figures, chart, open issue, steps and cards. No message content or error text.
GET /api/workflows/{id}/runsThe Runs list, with result and a search.
GET /api/workflows/{id}/runs/{runId}One run's panel. Add phi=reveal&reason=troubleshooting to get the message unmasked, audited.
POST /api/workflows/{id}/deployDeploy, approve, dry run, canary, schedule and roll back. See Test, version and deploy safely.
PATCH /api/workflows/{id}Settings: owner, tags and maxInFlight.
POST /api/workflows/{id}/alert-rulesAdds one of the four workflow alerts.
GET /api/workspaces/{id}/peopleThe people Owner offers.

Reference