Skip to content
Reference

Adapter: Sink (discard)

Accept and record each message, deliver nothing (Rhapsody Sink). For building and testing; needs no connection profile.

On this page

Purpose

A destination that accepts each message, records it and sends it nowhere, like the Sink communication point in Rhapsody. Use it while you build and test an interface: the workflow runs end to end before the receiving system is reachable, and you can read exactly what would have been sent.

  • Add one: in the builder's step palette, Deliver › Sink (discard) adds a branch that ends in a sink. On a destination, set Send to to a sink (record it, send nowhere). On a plain graph's send step, choose Sink (discard) · built-in, delivers nothing as the adapter profile.
  • What it records: the step output is { sunk: true, delivered: false, destination: "Sink (discard)", received, note }, where received is exactly what the step received. The run's step output (inspector, Run test) and the Messages inspector show it under the usual PHI masking: masked until you reveal, and the reveal is audited.
  • How it shows: the builder's steps list and canvas mark it Sink with a SINK badge and "Records the message · delivers nothing"; the Messages Delivery tab reads Queued → Sunk, "sunk · nothing delivered".
  • Deploy: the deploy checklist warns ("Delivers somewhere") when a production workflow's only destinations are sinks. It is a warning, not a block.
  • Migration: the Rhapsody importer maps a Sink point to a sink step. Mirth has no sink: the Mirth exporter writes a sink as a Channel Writer to no channel (None) with a note in the fidelity report, and the Mirth importer reads a Channel Writer to no channel back as a sink.

Auth

None. A sink step names the built-in profile medhook:sink, so it needs no adapter profile and has nothing to test or configure. A profile of type sink also works, but is never needed.

Settings

Auth is none. Dotted names are fields inside an object setting. Secret settings are encrypted at rest, never returned by a read, and shown masked in the console and in exports; their defaults are not shown.

This adapter has no settings.

Actions

A trailing ? marks an optional step parameter. A message can supply only the keys in the last column; everything else comes from the step.

ActionWhat it doesStep parametersKeys a message may supply
sendRecord the message and deliver nothing.NoneNone

Minimal example

The smallest profile the engine accepts: the required settings only, with synthetic values. Create it with POST /api/adapter-profiles, then test it with POST /api/adapter-profiles/{id}/test.

json
{
  "name": "Sink (discard) (example)",
  "adapterType": "sink",
  "config": {}
}

Limits

  • It always succeeds and never retries: there is nothing to deliver. A failure before the sink (a mapping error) still fails the run as usual.
  • The record is the step output, kept as long as the workflow's run history; it is not a queue you can forward later. To deliver what a sink kept, point the destination at a connection and replay the messages.
  • A sink step's output counts toward the largest stored step output (EXECUTION_NODE_RESULT_MAX_BYTES) like any step.