MessageRoutes

MessageRoutes with a MessageDestination of DestinationType 'P2PI' are used to route messages in P2PI:

<MessageDestination>
<ValueChainId>9123</ValueChainId>
<Name>outbox/OrdersForVC200</Name>
<DestinationType>P2PI</DestinationType>
<Config>{destinationInstance: 'platformInstance200', destinationQueue: 'inbox/OrdersFromVC9123', destinationInterface: 'SimpleOrderInterface'</Config>
</MessageDestination>
    
The DestinationTypeConfig is a JSON object containing:    
  • destinationPlatformInstance (required) – Name of the PlatformInstance model in the local DB which points to the Platform instance who should receive the message.

  • destinationQueue (required) – name of the queue to which the message should be routed

  • destinationQueueEnterpriseName (optional) – should be provided if the queue has an owning enterprise

  • destinationInterface (optional) – inbound interface to apply to the message being sent. When not provided, it will use the "InboundInterface" of the Message being delivered.

In our example above, all messages dropped in outbox/OrdersForVC200 should be routed to Platform with VCID 200. When it is enqueued onto VCID 200, it will go into queue inbox/OrdersFromVC9123 for interface SimpleOrderInterface.