Index: AXimpl/MessageInProcessor.cls.xml =================================================================== diff -u -r49635 -r49693 --- AXimpl/MessageInProcessor.cls.xml (.../MessageInProcessor.cls.xml) (revision 49635) +++ AXimpl/MessageInProcessor.cls.xml (.../MessageInProcessor.cls.xml) (revision 49693) @@ -28,13 +28,18 @@ 1 + +TECH.Mail.MailAPI +1 + + AXimpl.VerwerkBestandOpnieuwAanvraagRepository 1 -FileAPI:TECH.File.FileAPI,XmlCorrelater:TECH.XMLCorrelater,EventRaiser:AXimpl.EventRaiser,ConfigIn:AXimpl.ConfigIn,VerwerkBestandOpnieuwAanvraagRepository:AXimpl.VerwerkBestandOpnieuwAanvraagRepository +FileAPI:TECH.File.FileAPI,XmlCorrelater:TECH.XMLCorrelater,EventRaiser:AXimpl.EventRaiser,ConfigIn:AXimpl.ConfigIn,VerwerkBestandOpnieuwAanvraagRepository:AXimpl.VerwerkBestandOpnieuwAanvraagRepository,MailAPI:TECH.Mail.MailAPI 1 1 %Status @@ -46,6 +51,7 @@ Set ..ConfigIn = $$$Inject(ConfigIn,##class(AXimpl.ConfigIn).%New()) Set ..VerwerkBestandOpnieuwAanvraagRepository = $$$Inject(VerwerkBestandOpnieuwAanvraagRepository,##class(VerwerkBestandOpnieuwAanvraagRepository).%New()) Set ..Logger = ##class(vhLib.Logger).%New() + Set ..MailAPI = $$$Inject(MailAPI,##class(TECH.Context).Instance().GeefMailAPI()) quit $$$OK ]]> @@ -93,7 +99,7 @@ try { #dim Exception As TECH.IException = ##class(TECH.ExceptionHandler).Catch() if Exception.%IsA(##class(AXimpl.VerwerkAXBerichtLaterOpnieuwException).%ClassName(1)) { - Do ..Logger.Info("Verwerk AX bericht '"_FullFilename_"' later opnieuw", Exception.ToString()) + Do ..Logger.Info("Verwerk AX bericht '"_FullFilename_"' later opnieuw", Exception.GeefOmschrijving()) Do ..RegistreerVerwerkBestandOpnieuwAanvraag(FullFilename) } else { Set VerwerkVolgende = $$$False @@ -164,6 +170,9 @@ Set Aanvraag.Sinds = ##class(TECH.Context).Instance().GeefDateTimeAPI().CurrentTimeStamp() } Set Aanvraag.Teller = Aanvraag.Teller + 1 + if ((Aanvraag.Teller >= 300) && ((Aanvraag.Teller # 60) = 0)) { + Do ..StuurMailBerichtTeveelNietVerwerkt(Filenaam) + } Do ..VerwerkBestandOpnieuwAanvraagRepository.Bewaar(Aanvraag) ]]> @@ -181,6 +190,21 @@ } ]]> + + +FullFilename:%String +1 + +