reroute message in Tcl

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf reroute message in Tcl

  • Creator
    Topic
  • #55616
    Kathy Hoerner
    Participant

      I am a total newbie  to Cloverleaf – We need to reroute a message to a new destination in tcl .  The message is sent via a http post –  if the response is   greater than 299 we want to route the message to another thread.  Currently we are sending a email notification .   1. is this feasible?  2. If it is possible,   The original message is getting killed off .  Would you make a  copy of that message change meta data some how? how exactly can this be accomplished.

      Any help is appreciated…

      Kathleen

    Viewing 1 reply thread
    • Author
      Replies
      • #85902
        Jim Kosloskey
        Participant

          What release of Cloverleaf?

          If you are on 6.0 or later there is a reroute capability built into the Xlate (I have a Word document which gives some treatment how to do that in an Xlate email me if you would like that doc).

          If you do not have an Xlate involved, this can also be done in Tcl and the Cloverleaf doc gives some information about that.

          It is quite simple to do in the Xlate and I suspect the Tcl method is not very difficult.

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

        • #85903
          Rob Lindsey
          Participant

            Yes it is possible to REROUTE a data message.  There are certain considerations that you have discuss with your development/support groups.  

            We had something like this come up recently and instead of changing routes on the FLY, we considered what it would take to support something like that.  Our situation was how to send back an ACK to the sending system if the msg met certain criteria far down the line of routes and tclprocs.  If you are not prepared for REROUTES then tracking a data message will become interesting.  We decided to write the data out to a directory and have another thread read in the message written out to the directory/file to get it to its proper destination.  It just made more sense for us.  

            So what all of that says is that it depends upon your situation and how your support groups deal with tracking data messages.

            Rob

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