Change to IB reply proc

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Change to IB reply proc

  • Creator
    Topic
  • #51609
    Charlie Bursell
    Participant

      We are making a change to the HL7 reply proc hl7Raw_ack in release 5.8 so it will not send replies when resending messages through the thread.  As you may well know, as of 5.7, this proc is now released as part of the $HCIROOT/tclprocs directory along with the recover_56 procs.

      If you are using this proc, or another acknowledgement proc, in an IB thread and would like to modify it the same way here are the instructions:

      In the beginning of the proc, right after getting the message handle:

      set mh [keylget args MSGID]    ;# Message header

      add this code:

      # If this message was resent (as opposed to received

      # by a protocol driver), don’t send an ACK.

      set flags [msgmetaget $mh FLAGS]

      if { “[lsearch -exact $flags is_resent]” ne “-1” } {

         return “{CONTINUE $mh}”

      }

    Viewing 2 reply threads
    • Author
      Replies
      • #70963
        Bob Richardson
        Participant

          Thank you Charlie!

          We have been using code to check the PRIORITY value to not generate replies during resend operations.  In our ACK logic, if the PRORITY is not = 5120 we assume that this is a resend event as 5120 is the default.  For resends we have been specifying 5121 to avoid the unwanted ACKs.

          Your code is slick and will be used in our ACK procedure.

          BobR

        • #70964
          Charlie Bursell
          Participant

            Not my code, Rob’s code  ðŸ™‚

          • #70965
            Bob Richardson
            Participant

              Ok… definitely give Rob the credit here!

              But thanks for the communication.

              BobR

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