- 5 minutes to read

Publishing Orchestrations

New 7.13

A send port that subscribes on a message type only seems to have no source: its filter names no receive port. Often the message comes from an orchestration that sends it through a direct-bound send port, straight to the BizTalk MessageBox. Generate Articles from BizTalk finds those orchestrations, so an Integration Article can name who feeds the route instead of leaving it open.

Document the integration on the send port i0120_StatusAck_ToFile: the route picker shows the row from orchestration i0120_DirectBound, Clear filters, search the orchestration and tick it, Create Integration Article, and the new Article's Routing line Published by, the Publishes table, and the send port's Published by row, animated walkthrough (7.13)
Animated walkthrough: documenting a send port together with the orchestration that publishes what it subscribes on.

  1. Open the Endpoint i0120_StatusAck_ToFile, a send port whose filter names a message type only.
  2. Click Document the integration. The route picker opens.
  3. The filter names no receive port, yet the publisher is known: the row says from orchestration i0120_DirectBound.
  4. Click Clear filters to search the whole BizTalk group.
  5. Search for the orchestration that publishes it.
  6. Tick the orchestration too, so the Article documents it.
  7. Click Create Integration Article.
  8. Open the new Integration Article.
  9. Routing names the send port, then the orchestration that publishes what it subscribes on.
  10. The orchestration's Building Block shows what it publishes to the MessageBox, and who subscribes on it.
  11. The send port's Building Block shows Published by.

Understanding Publishing Orchestrations

flowchart LR O["fa:fa-diagram-project Orchestration
Send shape on a direct-bound port"] -->|"publishes the message,
sets context properties"| MB["fa:fa-database BizTalk MessageBox"] MB -->|"filter on the message type:
certain"| S1["fa:fa-paper-plane Send port, send port group,
or orchestration"] MB -.->|"filter only on properties the
orchestration sets: likely"| S2["fa:fa-paper-plane Send port, send port group,
or orchestration"] style O fill:#2678BD style MB fill:#3F827B style S1 fill:#93d16d style S2 fill:#FFD525

The orchestration (blue) publishes to the MessageBox (teal). A subscriber that filters on the message type it publishes is certain (green); one that filters only on properties the orchestration sets is likely (yellow, dashed).

A direct-bound send port is bound to the MessageBox, not to a named port: whatever subscribes on the message type, or on the context properties the message carries, receives it. Nodinite reads the Send shapes, the correlation sets they initialize, and the assignments to the message's context from the ODX that the BizTalk management database stores with the assembly, and the schemas behind each message type. It needs the same read access as the activation filters, and no BizTalk Monitoring Agent; see the prerequisites.

Match When Wording
Certain The subscriber filters on the message type the Send publishes from orchestration ‹name›, Published by orchestration ‹name›
Likely Every property the subscriber's filter branch uses is one the orchestration sets; configuration can't prove that the values match likely from orchestration ‹name›, Likely published by orchestration ‹name›

Ports bound port to port (partner-bound) are left out.

Where the Publisher Shows

Place What you see
Route picker row from orchestration ‹name› or likely from orchestration ‹name› under the source; the tooltip names the Send shape, the logical port and, when likely, the properties it sets. A search for the orchestration's name finds the routes it feeds.
Integration Article, Routing A line under the route, for example Published by orchestration i0120_DirectBound (logical port AckDirectOut, Send shape Send_Ack). or Likely published by orchestration i0200_RouteOrder (logical port RoutedDirectOut, Send shape Send_Routed_Order), which sets Lab.Shared.Schemas.Region on the message.
Integration Article, flow diagram An edge from the Send shape into the MessageBox, dashed when it is likely
Integration Article, Findings A certain publisher removes the finding that the route's filter names a message type only; a likely one adds Route ‹route› is likely published by orchestration ‹orchestration›, which sets ‹property›; configuration cannot prove the values match.
Orchestration Building Block The table Publishes (direct-bound sends)
Send port Building Block The fact row Published by, for example orchestration i0120_DirectBound (Send shape Send_Ack)

The Publishes Table

The orchestration's Building Block lists its direct-bound sends in the table Publishes (direct-bound sends), under a sentence that explains it:

Column Shows
Send shape The Send shape that publishes
Logical port The direct-bound logical port it sends through
Message type The message type it publishes; an untyped message shows its type with (decided at run time)
Sets properties The context properties the orchestration sets on the message, through a correlation set it initializes or an assignment, or —
Subscribers The send ports, send port groups, and orchestrations that subscribe on it, (likely) after a likely one; None when nothing subscribes

Publishes table of the orchestration i0120_DirectBound: the Send shape Send_Ack on the logical port AckDirectOut publishes the message type StatusAck, sets no properties, and has the subscriber i0120_StatusAck_ToFile (7.13)
A certain publisher: the send port subscribes on the message type that Send_Ack publishes.

Publishes table of the orchestration i0200_RouteOrder: the Send shape Send_Routed_Order on the logical port RoutedDirectOut publishes the Order message, sets OrderId and Region, and has three likely subscribers, i0170_FilteredActivation, i0175_Filter_Operators, and i0210_NorthApproval (7.13)
A likely publisher: the three subscribers filter on Region or OrderId, which the orchestration sets.

Facts table of the send port i0120_StatusAck_ToFile, with the Filter BTS.MessageType == StatusAck and the row Published by orchestration i0120_DirectBound (Send shape Send_Ack) (7.13)
The send port's facts name the orchestration that publishes what it subscribes on.

Document a Likely Publisher

A routing orchestration often sets a property, such as a region, and leaves the rest to the subscribers' filters. The route picker then marks the subscribers as likely fed by it.

Document the integration on the receive port RP_i0200_Orders_File: Clear filters, search the routing orchestration i0200_RouteOrder, the row of i0210_NorthApproval likely from orchestration i0200_RouteOrder, tick it, Create Integration Article, and the new Article's Routing line Likely published by, the Findings line, and the Publishes table with the likely subscribers, animated walkthrough (7.13)
Animated walkthrough: an approval that starts on a Region the routing orchestration sets, documented as likely fed by it.

  1. Open the Endpoint RP_i0200_Orders_File, the receive port of an orchestration that routes orders on.
  2. Click Document the integration. The route picker opens.
  3. Click Clear filters to search the whole BizTalk group.
  4. Search for i0200_RouteOrder: the picker also finds what the orchestration publishes to.
  5. The row of i0210_NorthApproval reads likely from orchestration i0200_RouteOrder: it starts on a Region that the routing orchestration sets, and configuration can't prove the values match.
  6. Tick it: the approval belongs to this integration.
  7. Click Create Integration Article.
  8. Open the new Integration Article.
  9. Routing says the approval is likely published by the routing orchestration, which sets the Region it filters on.
  10. Findings names the likely publisher as such.
  11. The routing orchestration's Building Block shows the properties its Send sets, and the likely subscribers.

Next Steps