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
single message in multiple messages out tcl proc
Joseph Paquette
Hello,
I am trying to write a tcl proc that will handle order messages in with multiple OBR and ORC segments. I have the proc generating the messages correctly, however I cannot figure out how to get more than one message out. When using the testing tool it will only spit out a single message. However using the echo command I see that I am generating more than one. Anyone have any idea on how to get more than one message out from a single message in???
Find more posts tagged with
Clovertech
Comments
Rob Abbott
You will have to create a new message handle for each additional message you want to return. It's recommended that you use msgcopy rather than msgcreate so that metadata is preserved.
assume that $mh is your original inbound message and $hl7 contains your data. The code below would exist inside your loop that is splitting the data into individual messages
set newMh [msgcopy $mh]
msgset $newMh $hl7
lappend dispList "CONTINUE $newMh"
You can also do this sort of thing in translation with the CONTINUE operation.
Jim Kosloskey
Joseph,
That is really easy to do in the Xlate - any reason you are doing it in Tcl?
Jim Kosloskey
Joseph Paquette
Hello,
Usually have better control using tcl, have not really had a good example to look at using the suppress/continue option. Working on the translation now may need some direction with the suppress/continue placements.
Joe