Route Message According to Contents

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Route Message According to Contents

  • Creator
    Topic
  • #50547
    David Harrison
    Participant

      Cloverleaf 5.6 on Solaris 10

      I have an inbound message which will need to go through a different Xlate according to a field within the inbound message. As an example, if the field equals AB123 then I want to use AB123.xlt; if it

    Viewing 3 reply threads
    • Author
      Replies
      • #66560
        Rob Abbott
        Keymaster

          Generate is difficult to use and hard to maintain.  

          I recommend you write a trxid determination proc to set the trxid.  You wold parse out your field in the proc and set the trxid to the value of the field.

          So trxid of “AB123” would go through a route that uses your AB123.xlt and “XY798” would use a route that uses the XY789.xlt

          Rob Abbott
          Cloverleaf Emeritus

        • #66561
          David Harrison
          Participant

            Rob,

            I’ve just come to the conclusion that a trxid proc is the way to go. Thanks for the feedback anyway.

            Dave

          • #66562
            Richard Hart
            Participant

              Hi David.

              We’ve been doing this for years and works well!

              If you have some TCL code before you route code, you can use the TCL code for your route processing and then use message USERDATA to set the route.

              We perform almost all of our translations in TCL and this works well

              eg

              proc ccm_code_trx_id_ack {aMsgId} {

                             #

                             # The Route is in the user data

                             #

                     set myTrxId [msgmetaget $aMsgId USERDATA]

                     return $myTrxId

              }

            • #66563
              Russ Ross
              Participant

                If you already know how to do a trxID proc then great; otherwise, here is a URL showing details of how I implemented a trxID with some helpful screen shots as well.

                <a href="https://usspvlclovertch2.infor.com/viewtopic.php?t=1562&#8243; class=”bbcode_url”>https://usspvlclovertch2.infor.com/viewtopic.php?t=1562

                Russ Ross
                RussRoss318@gmail.com

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