Roll a shared mapping change out safely
Change one shared component, see the three workflows it touches, run their tests against the new release and update the two that pass, with the third held back and the reason shown.
On this page
Three Demo Health workflows (admits, transfers and discharges) use the same Assign room component, pinned to 1.0.0. The room mapping changes. This recipe changes it once, shows the impact, runs each workflow's tests against the new release and updates only the ones that pass. Nothing goes live until each draft is deployed.
Source and destination
flowchart LR
C[Component: Assign room 1.1.0] -. impact .-> A[Admits, pins 1.0.0]
C -. impact .-> T[Transfers, pins 1.0.0]
C -. impact .-> D[Discharges, pins 1.0.0]
A --> H[Held back: its test expects the old room]
T --> N1[New draft pinned to 1.1.0]
D --> N2[New draft pinned to 1.1.0]- Shared piece: a component that takes
mrnand returnsmrnandroom. - Consumers: three workflows, each with a saved test case on its Component step.
Build it
1. The component and its consumers
Make the Assign room component (see Reuse steps with components) and add it to each workflow with + Use a component, pinned to 1.0.0. In each workflow, select the Component step, Run with sample with a synthetic message for TESTPATIENT ({ "mrn": "TESTMRN-0402" }) and Save as test case. The admits workflow's case expects the room exactly; the others only check that mrn is there.
2. Change the mapping and publish
On the component's page, Edit steps and change the room. Publish release… 1.1.0. The three workflows keep running 1.0.0.
3. Read the impact
Impact of 1.1.0 lists the three workflows, each pinning 1.0.0 with Update available. What it needs and gives back is unchanged, so the release is not major.
4. Run tests, then update
Choose Run tests. Transfers and discharges show Tests passed 1/1 · ready. Admits shows Held back: its tests failed and why: Test case "A room check" failed: … room differs.
Choose Update all (3). Transfers and discharges get a new draft pinned to 1.1.0 (Updated: draft v…). Admits stays on 1.0.0 and keeps Update available until its test is fixed or its expectation updated.
5. Deploy
Open each updated workflow's Versions tab (Deploy it) and deploy the draft through the usual checklist. Production runs 1.0.0 until then. The update is in the audit log as component.update, with the two updated and the one held back.
When the change is breaking
If the new release drops the room output instead, the impact shows Breaking · major and Output "room" was removed. Update all stays off until you tick I understand 1.2.0 is a major release. Without that acknowledgement, the API holds every workflow back with the reason major.