Selective data switch

Example of an additional1) forwarding of incoming messages to another system with selection by TradingPartner GLN. This variant can, for example, be used in migration scenarios to provide a new system to be set up with messages that enable a pilot operation with selected trading partners.

Required components

  1. Variable definitions with name e.g. „dataswitch“, of type text and bindable to system partner.
    1. instantiate this variable at the system partner with the list of GLNs of the trading partners to be considered.
  2. Job object MessageSelector in the standard inbound job following normal processing
    1. in the XPATH expression enter the following expression
      /SelectionBase/InputMessages[@MessageBoxName='from.Partner' and contains(GetSystemPartnerVariable('dataswitch'), @PartnerGLN)]

      This selects the incoming messages in the specified message box2), which have the GLN of the trading partner in the list of GLNs and which are defined in the variable instance „dataswitch“ at the system partner.

    2. Only messages whose state is less than „Sent (800)“ are considered.
  3. Job object DelegatorJob to delegate to the
  4. Send job with job object ChannelSender that uses the send channel defined under 2, and sets the message state to "Sent(800)".
1)
or parallel
2)
The data element @MessageBoxName is compared with the message box name, which contains the effectively incoming messages.