Thread question

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Thread question

  • Creator
    Topic
  • #51881
    Mike Campbell
    Participant

      I know you can code a TCL fragment, you could copy $::HciSite to xlateOutVals to determine if production or test site.  

      Is there a similar HCI variable to use to populate an e-mail with the thread that generated a message?  Basically, I’m setting up a process to e-mail if we get a ‘NACK’ back from a vendor and want to use a generic e-mail tcl proc and a variable to say which thread it was generated from.

      As always, thanks!

    Viewing 2 reply threads
    • Author
      Replies
      • #72123
        Charlie Bursell
        Participant

          HciConnName

        • #72124
          Michael Hertel
          Participant

            We use the following in our tclprocs:

               global HciSite HciConnName

               set procname [lindex [info level [info level]] 0]

               set module “$HciSite/$HciConnName/$procname: “

            $module is used as part of the subject in the email.

            Very useful.

          • #72125
            Richard Hart
            Participant

              We have a library routine to send emails and prefix non production emails with [Cloverleaf ].

              We use the Cloverleaf install environment variable to confirm the run level – which  may not work for you – and store this in a global variable once set.

              eg

              Subject: [Cloverleaf Test]HCAL Processing for Application: eConsult; CorrelationID: 53652fbc-4563-4f34-b88e-ff72bf2b1d00 [document_sit]

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