Can’t use disposition OVER in SendOK Procs?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Can’t use disposition OVER in SendOK Procs?

  • Creator
    Topic
  • #52502
    Peter Heggie
    Participant

      I want to generate and send a new (HL7) message if a file is successfully delivered to the outbound destination. I tried using SendOKProcs to generate an HL7 message, which it does, but then I tried using a disposition of OVER, to get it to go into the Inbound queue, and then on to Routing. The error message in the log says that OVER is invalid. So I’m guessing that you can’t use OVER in this situation. So what can I use?

      I’ve got three points A, B & C. I’m using fileset-FTP to move a file from A to B. When B is successfully delivered, I want to generate an HL7 message and send it to C.

      Alternatively, if I generate a new message in A, then it goes through routing in A, which currently raw routes using a static route (which I thought appropriate for a non-text file). So if I have to generate the new message here, then I have to have two destinations: static route raw and TXNID xlate, and both need to have filters to filter out the message meant for the other destination?

      I was hoping to generate this HL7 message in the destination thread, so I am guaranteed to only send the HL7 message if the file was successfully delivered. Is there a way to do that?

      Peter

      Peter Heggie
      PeterHeggie@crouse.org

    Viewing 7 reply threads
    • Author
      Replies
      • #74477
        Rob Abbott
        Keymaster

          Try using the SEND disposition.  You will need to populate the destination thread name in the DESTCONN metadata to point the message to the correct destination thread.

          Fair warning – I haven’t tested the SEND disposition in send-OK but this method works from other contexts.

          Rob Abbott
          Cloverleaf Emeritus

        • #74478
          Peter Heggie
          Participant

            That solved the problem – thank you! So now I can send a new message based on a successful file transfer (or successful whatever). This is going to be very useful.

            Peter

            Peter Heggie
            PeterHeggie@crouse.org

          • #74479
            Jim Kosloskey
            Participant

              Peter,

              Just be aware that sends the message directly to the Desination Connection.

              That may limit some of the flexibility in dealing with the message between the outbound thread and the new destination.

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

            • #74480
              Peter Heggie
              Participant

                I want to make sure I understand these limitations – so using a SEND in SendOK Procs with a modified destination means that the message goes to Q8 of that destination – the OB post-proc queue?  And therefore any outbound procs will not touch the message?

                Also, will this impact acknowledgments (although we are not planning on receiving any ACKs).

                I see that the messages are saved in the SMAT file for that outbound thread, so resending messages should work ok?

                How about operational implications? If we shutdown that thread, will these customized messages just queue up in Q8 until the thread is restarted?

                Thanks,

                Peter

                Peter Heggie
                PeterHeggie@crouse.org

              • #74481
                Charlie Bursell
                Participant

                  If going to an OB thread you also need to set SKIPXLT flag to 1 else the message will hang in State 5

                • #74482
                  Peter Heggie
                  Participant

                    This is for the new message generated in the SendOK procs? Is this flag in the meta data?

                    How do I see this message hang – will it show as a pending message in the thread statistics, or can I see it in the recovery database?

                    Thanks,

                    Peter

                    Peter Heggie
                    PeterHeggie@crouse.org

                  • #74483
                    Charlie Bursell
                    Participant

                      msgmetaset $mh SKIPXLT 1

                      Should see in recover DB

                    • #74484
                      Peter Heggie
                      Participant

                        I don’t see these messages in the recovery db, or any messages in state 5, but also I don’t have an xlate defined in this (third) thread and I’ve got the ‘Outbound Only’ box checked. Still, I will add this code to the SendOK Procs.

                        Thank you,

                        Peter

                        Peter Heggie
                        PeterHeggie@crouse.org

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