Skip to content
Art2link ESB v2.02 LTS HomeDocumentationBlogContact
Core concepts/Ports/Send port
Concept

Send port

Send ports are how messages leave Art2link ESB. They subscribe to the bus, run the matched message through optional variable, map, and pipeline stages, and hand it to an adapter for dispatch.

02 PORT TYPE · SEND Send port Subscribes to the bus and dispatches messages out via an adapter DIRECTION ↑ Outbound MODES One-way · Two-way ADAPTER ✓ Required MESSAGE TYPE If 2-way

A send port is the mirror of a receive port. Where the receive port accepts a message and publishes it to the bus, the send port subscribes to the bus and dispatches matching messages out through an adapter. The subscription expression selects messages off the bus — every message that satisfies the expression is picked up and run through the outbound flow.

One-way mode ends at dispatch. Two-way mode keeps the integration thread alive and captures whatever the adapter produces in response, then publishes it back to the bus where the integration can continue.

Subscription expression — required; identifies which messages on the bus this send port should pick up
Variable assignments — optional; can run before and after the map and pipeline stages, in both directions. See Variables
Outbound map & pipeline — optional; transforms and post-processes the message on the way out. See Maps and Pipelines
Adapter — required; defines the protocol (HTTP request, file write, email send, queue enqueue, etc.). See Adapters
Inbound map & pipeline — optional, used only in two-way; pre-processes and transforms the response
Publish Message Type Fallback — optional, two-way only; the Message Type assigned to the response if the inbound pipeline did not classify it. Without classification and without a Fallback, the port raises an error rather than publishing an untyped response. See Message types

The send port has two map hookpoints — an outbound map on the request side, and (in two-way mode) an inbound map on the response side. Both sides take the same three configurations: None (no transform), Typed (a table of maps keyed on source Message Type), and Universal (a single map applied to every message regardless of source). See Maps — Selecting a map for the map-level concept. Typed table rows are unique by source Message Type — the UI enforces that.

The two sides differ on direction. The request side moves a message off the bus to the partner; the response side brings the partner’s reply onto the bus. That difference decides whether a Publish Message Type Fallback applies.

Request side — outbound from the bus. The send port’s subscription expression picks the message off the bus where it already carries a Message Type. That resolved Message Type drives the Typed-table lookup. No Publish Message Type Fallback on this side — nothing needs to fall back to. With a loose subscription expression that can match multiple Message Types (for example one keyed on a partner identifier rather than a Message Type), Typed gives the port a clean per-type dispatch without forcing one send port per Message Type.

None Bus MT: X Adapter No transform MT carries through Typed Bus MT: B SOURCE MT → MAP A B C Map table MT: B′ Adapter Picked by source MT Miss → no map applied Universal Bus MT: X Map MT: Y Adapter One map, any source Sent shape = map target

Response side — inbound to the bus. The response is whatever the partner returned through the adapter, so its Message Type is not yet known when it arrives. The inbound pipeline can classify it at runtime; if classification doesn’t happen, the port’s optional Publish Message Type Fallback assigns the Message Type so the response can publish to the bus. If neither resolves a Message Type, the port raises an error — the bus does not accept untyped messages. Pipeline classification to a Message Type that does not exist in the application also errors. Once typed, the map step proceeds in whichever mode is configured.

None Adapter MT: X Bus No transform Published MT = resolved MT Typed Adapter MT: B SOURCE MT → MAP A B C Map table MT: B′ Bus Picked by source MT Miss → no map applied Universal Adapter MT: any Map MT: Y Bus One map, any source Published MT = map target
Symmetric with the receive port. The response side of a send port is structurally identical to the request side of a receive port — partner content arrives, the pipeline may classify it, and the map publishes to the bus. The Publish Message Type Fallback applies the same way in both places. See Receive port for the canonical walkthrough of the inbound-to-bus mechanics.
ONE-WAY MODE

The send port's job ends the moment the adapter dispatches the message. There is no return path — the adapter does its work, and the integration thread for this message terminates. This is the model for fire-and-forget destinations: file writes, queue enqueues, and any flow where the integration has no interest in what happens after the message leaves.

SEND PORT Internal message bus — message picked up via the port subscription expressionBusREFERENCE Application Variables assigned values immediately after entering the port1{ x }VariablesON ENTRY Outbound map — transforms the message from the canonical shape into the destination shape2Map Outbound pipeline — post-processing such as compression, encryption, signing, or framing3Pipeline Application Variables assigned values immediately before leaving the port4{ x }VariablesON EXIT Boundary that hands the message to the wire and dispatches it5Adapter External system that receives the dispatched messageReceiverEXTERNAL SOLID = REQUIRED  ·  DASHED = OPTIONAL  ·  HOVER A STAGE FOR DETAIL
1
Stage One
Variables — On Entry Optional

Once the send port's subscription expression matches a message on the bus, that message enters the port. An optional set of variable assignments runs first. Capture or compute values from the source message — target endpoint URL, recipient address, batch number, correlation IDs — and store them as variables that downstream stages and the adapter itself can reference. A single message on the bus can satisfy multiple subscriptions; every matching send port handles its own copy independently.

2
Stage Two
Outbound map Optional

The outbound map transforms the message from the canonical shape on the bus into the shape the destination system expects. The map step has three modes — None, Typed (a table of maps keyed on source Message Type), or Universal (one map applied regardless of source). The source Message Type is whatever the bus message carries when the subscription expression picks it up, so no Publish Message Type Fallback applies on this side. See the Map configuration on both sides section above.

3
Stage Three
Outbound pipeline Optional

The outbound pipeline applies post-processing on the way out — compression, encryption, signing, or framing the message for the wire.

4
Stage Four
Variables — On Exit Optional

A second optional variable-assignment stage runs after the pipeline, immediately before the adapter takes over. Useful for setting last-mile values such as outbound headers, request identifiers, or tracking values that depend on the final wire-shape of the message.

5
Stage Five
Adapter dispatches the message

The adapter takes the prepared message and handles the wire-level conversation with the destination system — opening an HTTP request, writing a file, sending mail, enqueueing on a broker. In one-way mode the send port's work is done the moment the adapter completes dispatch.

Result. The message is handed to the adapter, which dispatches it to the destination system. In one-way mode the send port's work is done; the integration thread for this message ends here.
TWO-WAY MODE

A two-way send port runs the entire one-way flow above to dispatch the message, and then captures whatever the adapter produces afterwards as a response. The response runs through the inbound stages — variable assignments, an inbound pipeline, and an inbound map — and is then published back to the bus, where the integration can pick it up and continue.

Two-way on a send port is not always about receiving a meaningful payload from the wire. Some adapters simply have nothing useful to return — an Email sender, for example. The point of two-way is to keep the integration thread alive after the dispatch so a downstream subscriber can react. The response message can have an empty body; what matters is that it reaches the bus with a resolved Message Type — from inbound pipeline classification, or, if classification doesn’t happen, from the port’s Publish Message Type Fallback — so downstream subscribers can match on it reliably.

Note the order on the way back: pipeline first, then map — the inverse of the outbound order. The pipeline handles transport-level pre-processing such as decompression or signature verification before the map reshapes the response into the canonical form used inside the application.

SEND PORT REQUEST Internal message bus — message picked up via the port subscription expressionBusREFERENCE Application Variables assigned values immediately after entering the port1{ x }VariablesON ENTRY Outbound map — transforms the message from the canonical shape into the destination shape2Map Outbound pipeline — post-processing such as compression, encryption, signing, or framing3Pipeline Application Variables assigned values immediately before leaving the port4{ x }VariablesON EXIT Boundary that hands the message to the wire and dispatches it5Adapter External system that receives the dispatched messageReceiverEXTERNAL via wire RESPONSE Internal message bus — the response is published hereBusREFERENCE Application Variables assigned values immediately before leaving the port5{ x }VariablesON EXIT Inbound map — transforms the response into the canonical shape used inside the application4Map Inbound pipeline — pre-processing such as decompression, decoding, or validation3Pipeline Application Variables assigned values immediately after entering the port2{ x }VariablesON ENTRY Boundary that received the response from the wire1Adapter External system that produced the responseReceiverEXTERNAL SOLID = REQUIRED  ·  DASHED = OPTIONAL  ·  RESPONSE EXECUTES RIGHT-TO-LEFT
1
Return Stage One
Adapter receives the response from the wire

Once the wire-level send completes, the adapter produces a response. For some adapters that response is the actual reply payload from the destination — an HTTP response body, for instance. For others it is just an acknowledgement that the dispatch finished, with no meaningful payload — an Email sender, for example. Either way, the adapter hands the response off to the inbound flow of the send port.

2
Return Stage Two
Variables — On Entry Optional

Optional variable assignments run immediately after the adapter. Capture transport-level metadata from the response — status codes, response headers, identifiers issued by the destination — for use further down the inbound flow or by downstream subscribers on the bus.

3
Return Stage Three
Inbound pipeline Optional

The inbound pipeline pre-processes the raw response from the wire — typical examples are decompression, character-set normalization, signature verification, or splitting a multi-record response into individual messages.

4
Return Stage Four
Inbound map Optional

The inbound map transforms the response from its wire shape into the canonical shape used inside the application. The map step has three modes — None, Typed (a table of maps keyed on source Message Type), or Universal (one map applied regardless of source). The source Message Type comes from pipeline classification at the previous stage; if classification didn’t happen, the port’s Publish Message Type Fallback takes effect. Without either, the response cannot publish and the port raises an error.

5
Return Stage Five
Variables — On Exit Optional

A final optional variable-assignment stage runs immediately before the response is published to the bus. Useful for capturing values from the transformed response that downstream subscribers, routing rules, or activity tracking will need.

Result. The response is published back to the bus with its resolved Message Type (from inbound pipeline classification, or the Publish Message Type Fallback if classification didn’t happen). From here it flows like any other message — receive ports, send ports, loopbacks, or activity tracking can subscribe to it and continue the integration.
i
Every send-port adapter supports two-way mode. Unlike receive ports — where only adapters that can hold a connection open support two-way — every send port can be configured as two-way regardless of which adapter it uses. The "response" may be the actual payload returned by the destination, or it may simply be an acknowledgement that the adapter finished its work. In either case, the response is published to the bus and the integration thread continues from there.
i
The response message always carries a Message Type — even when the body is empty. The Message Type is resolved before the response publishes: the inbound pipeline can classify it at runtime, and the port’s optional Publish Message Type Fallback kicks in when classification doesn’t happen. Either way, the response reaches the bus typed, so downstream subscribers can match on it reliably whether or not the adapter returns a payload. An empty-bodied response with a known Message Type is a perfectly valid signal on the bus.

Two options are independent of port type and direction — they apply equally to receive, send, loopback, and null ports.

Exceptions. When enabled, the port has a configured exception Message Type. An error during processing swaps the in-flight message's Message Type to that exception Message Type and re-publishes it. The payload itself is untouched.

BEFORE Message Type: Order Body: in-flight ⚡ exception raised swap MT payload unchanged AFTER Message Type: OrderException Body: → published to bus

Subscribe to the exception Message Type from another port to handle failures centrally — typically a send port that emails an alert, writes to a log, or files a ticket. Error traffic flows on its own Message Type rather than mixed with the original. On the Tracking screen, runs handled by a configured exception path appear as Exceptions; runs that failed without one appear as Errors.

Tracking. Per-port setting with three levels controlling what — if anything — is persisted to the Tracking store on each run.

Only on Error ON SUCCESS — nothing recorded — ON FAILURE step history + body ⚡ FAILURE ONLY Enabled ON SUCCESS full step history no body ON FAILURE full step history no body Enabled + Body ON SUCCESS step history + body body at every step ON FAILURE step history + body body at every step

Set the same level across every port of a flow for a coherent end-to-end view on the Tracking screen. The system also maintains its own minimal internal tracking for running and suspended transactions (used for the runtime dashboard) — that's separate from this configurable Tracking and is always on. Every tracked step writes to the tracking database — mind the cost tradeoff with retention and reindexing jobs.

Send, loopback, and null ports each carry a subscription expression — a Boolean filter evaluated against every message published to the bus. Two-way receive ports carry the Response Subscription Expression for the same evaluation, used to identify which message on the bus is the response to send back to the caller through the same port.

Bus PUBLISHED MESSAGE MT: Order evaluated against every subscriber port ✓ match ✗ skip ✓ match Send port A {{Message.MessageType}} == "Order" → gets copy Send port B {{Message.MessageType}} == "Invoice" (no copy) Loopback port {{Promoted.Order.region}} == "EU" → gets copy

Pub/sub. When a message hits the bus, every subscription is evaluated independently. Each matching port gets its own copy and runs the message through its own flow. The same message can be picked up by any number of ports.

Message Type is the string identifier every bus message carries (similar in concept to BizTalk’s). A subscription expression most often checks the Message Type, but it can reference any of the following:

Token / sourceResolves to
{{Message.MessageType}}The current message’s Message Type identifier
{{Promoted.MessageType.Name}}A promoted property defined on the Message Type (see Message types)
{{Variable.Name}}The current value of an application Variable
{{Config.PortName}}The Name of the port the current message originated from
{{Message.Body}}.XPath()A value read from the message body — XPath (XML) or JPath (JSON)
Custom functionsRuntime-evaluated logic

That's the send port

Subscribe to the bus, transform on the way out, dispatch through any adapter. One-way fire-and-forget, or two-way with the response back on the bus for downstream subscribers. Next: Loopback port.