infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Can't use disposition OVER in SendOK Procs?
Peter Heggie
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
Find more posts tagged with
Clovertech
Comments
Rob Abbott
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.
Peter Heggie
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
Jim Kosloskey
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.
Peter Heggie
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
Charlie Bursell
If going to an OB thread you also need to set SKIPXLT flag to 1 else the message will hang in State 5
Peter Heggie
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
Charlie Bursell
msgmetaset $mh SKIPXLT 1
Should see in recover DB
Peter Heggie
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