Replies: 4 comments 6 replies
-
I do not have reference code but there are a few ways to do this. I assume that since queryUserList returns rows that each row is sent to pushUser one by one and not as a batch. If pushUser tolerates a batch, reply and we can find a much simpler solution. Option 1 - JS Reader and JS HTTP calls Have a JS reader poll, and call the queryUserList endpoint using JS/Java HTTP calls. Then your destination is just an HTTP sender to the pushUser endpoint Option 2 - Two channels Channel 1 is a JS Reader that just polls. Channel 2 is a Channel Reader with a batch split set for its input data format (CSV or whatever) |
Beta Was this translation helpful? Give feedback.
-
The above method can achieve the function, but it doesn't feel very good |
Beta Was this translation helpful? Give feedback.
-
I originally intended to use router.routeMaessage in Source JavaScript |
Beta Was this translation helpful? Give feedback.
-
Thank you all for providing ideas |
Beta Was this translation helpful? Give feedback.
-
To achieve the following functionality in Mirth Connect:
1、Periodically call the URL http://192.168.10.201:8888/queryUserList every hour to retrieve all user information from a third-party source in a paginated format (about 10,000 records).
2、Push the retrieved data to the http://192.168.10.111:19001/pushUser endpoint.
Do you have any reference example code? I don't have any clue yet。thanks
Beta Was this translation helpful? Give feedback.
All reactions