Make multiple new transactions from one

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Make multiple new transactions from one

  • Creator
    Topic
  • #53026
    Henry Bauer
    Participant

      I need to take a transaction clone it several times give each a unique msg id and possibly change some other components. My problem is I am unsure if this can be done within tcl or if I need to utilize another method, I have never sent multiple message handles from a tcl is this even possible.

    Viewing 1 reply thread
    • Author
      Replies
      • #76288
        Boris Perov
        Participant

          remember, you’re returning a list

          You can send as many messages as you like.  you just append them to the list:

          lappend dispList “CONTINUE $mh”

          at the end, you return the $dispList

          Let me know if you need help,

          Boris

          bperov@gmail.com

        • #76289
          Charlie Bursell
          Participant

            Henry:

            As you create more message be sure and use msgcopy instead of msgcreate so you maintain the proper meta data.

            A good hint if you will be creating many messages from one input and the input message is large:

            set msg [msgget $mh]

            msgset $mh “”

            This way when you do msgcopy you are not copying the large message each time, just the metadata.  For very large messages this can cause the process to speed up by many orders of magnitude.

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