Passing variables in xlate to instream proc

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Passing variables in xlate to instream proc

  • Creator
    Topic
  • #51733
    Mike Campbell
    Participant

      I’m trying to structure an email using and instream proc.  I need to be able to pass several variables set during message processing to pass into the tcl.  The email works fine developing the body, subject, etc.  

      Basically, I need to save the inbound mrn, name and dob from HL/7 and pass those values in the body of the email.  Didn’t really see any thread that addresses this.

      5.7 on AIX.  

      Thanks.

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

          Mike,

          If I understand the question, you could populate temp variables (something like @mrn, @name, @dob) then use those as the Source for the Action that has the Tcl code. The values of the temp variables will be in XlateInVals.

          Of course you could also just use the inbound or outbound fields (after they are populated) as the Source for the Action that contains the Tcl code.

          Whichever works best for you.

          email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 61 years IT – old fart.

        • #71514
          Mike Campbell
          Participant

            Thanks Jim.  As always…good information.

            Just to clarify, I’m trying to, dependent on getting a Merge HL/7 message, to send an e-mail out.  I’m trying to use an in stream process to build the message and send via  mailx. Everything works, except getting the values from the message that I need.

             So, that’s what I’m working on now.  Either using variable set in the xlate or referencing the xlateoutvals somehow.

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