Routing internally generated message

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Routing internally generated message

  • Creator
    Topic
  • #48780
    Rick Martin
    Participant

      I’m generating an internal message (msgcreate) in a tps Inbound Reply proc with a key value and the ACK response code from the reply (in order to update a database with the response code).  

      Previously I was routing this internal message in a static raw route to a single thread.  Now, I need to route it to either one thread or another based on userdata.  Can I do that (how do I set the TrxID)?  Or should I just route it to both threads and have the threads determine if it should process the message or not.

      Thanks, Rick

    Viewing 1 reply thread
    • Author
      Replies
      • #59654
        garry r fisher
        Participant

          Hi,

          The simplest way would be to write a trxid procedure into the ‘trx id determination format’ of the inbound tab and then route by the trxid.

          Hope this helps.

          Garry

        • #59655
          Jim Kosloskey
          Participant

            Rick,

            IF this is an HL/7 (or other structured message) and IF you are placing your custom message type in the appropriate location in the message, you can simply do a TrxId for HL/7 (for example) and add your custom message type to the routing list.

            No Tcl needed.

            Jim Kosloskey

            email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.