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
Cloverleaf
Receive and send response from same thread
MiteshBhatt
Hi All -
I have this requirement wherein the FR_ (Java) thread receives the messages and sends it to Route, which will have an X-late to parse and manipulate the JSON. The manipulated JSON needs to be sent back the FR_ thread and back to the client in a synchronous fashion.
Anyone has done sending the reply back to the original fr_thread to the person sending the request?
How do we do this?
Like have a fr and to threads and then TO can have the OVER back to state1? and then back to FR? and how would the msg. when received by FR know the sender's details?
Can anyone help?
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
I think you could do this in one thread.
Route the thread fr thread to itself with an Xlate. Or use the 2 threads if that fits your eye better and makes it clearer to an observer what is going on.
As to the data needed from the fr thread, if the data needed is in the ctual message (and your release of Cloverleaf allows it) check on the 'Store original data in metadata' box in the Route Definition. Then Tcl (perhaps in the OB Tps or pre-write) can parse the data to extract what is needed - or on the fr thread use some Tcl where appropriate in the protocol used to capture the data needed downstream and place it in the metadata User Field (be sure to use a keyed list for your entry).
I think the above should work.
MiteshBhatt
Hi Jim - Thanks for your reply. I did what you said and seems like I am getting the response back.
Appreciate your help on this Jim!!