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
Out of one, come two
Jeff Manley
I am trying to write a tcl proc that takes one message in and creates two new messages, then kills off the first.
I am using a foreach to zip thru repeating fields and create the two new messages.
What is the code to create a new message and send it out? I have tried msgcreate, but it does not seem to work right, or I am using it impropely.
Then after the two messages are created/sent, how do I kill off the original message so it is not sent? As normal? lappend dispList "KILL $mh"
Thanks,
Jeff
Find more posts tagged with
Clovertech
Comments
jcobane1
Jeff,
You can use the msgcopy command to create a copy of the inbound message (and retain the associated metadata) then KILL the original inbound message handle; i.e
set newmh1 [msgcopy $mh]
set newmh2 [msgcopy $mh]
...other code to do whatever to the new messages....
lappend dispList "KILL $mh" "CONTINUE $newmh1" "CONTINUE $newmh2"
return $dispList
Hope this helps.
Jim Cobane
Henry Ford Health
Jim Kosloskey
Jeff,
Or you could do this with an Xlate (no need to KILL anything then) - your choice .