User bio
404 bio not found
Member since Apr 25, 2016
Posts:
Replies:
If you need to resend a large number of messages - check the article / code snippet:
"How to resend a large number of messages in Ensemble"
Certifications & Credly badges:
Slava has no Certifications & Credly badges yet.
Global Masters badges:
Slava has no Global Masters badges yet.
Followers:
Slava has no followers yet.
Following:
Slava has not followed anybody yet.
Using dynamic SQL it is possible to set the source, target, new target hosts and time ranges for messages resend dynamically as is shown in the sample class method. The last parameter pResend could be used to enable/disable the resend:
Sample ResendMessages call:
ENSEMBLE>do ##class(Sample.Resender).ResendMessages("MsgRouter", "HL7FileOperation", "FTP_Out", "2016-10-16 18:00:00.000", "2016-10-16 19:00:00.000", 1)
SQL query for messages resend:
select * from Ens.MessageHeader where SourceConfigName='MsgRouter' and TargetConfigName='HL7FileOperation' and TimeCreated > '2016-10-16 18:00:00.000' and TimeCreated < '2016-10-16 19:00:00.000'
Messages new target: FTP_Out
Resend messages? 1
Message Headers: 2
Resent HL7 messages: 2