Index: APPS/Halux/PPS/Document/impl/RVG/VoorbereidingSpecialWorkshop.cls.xml =================================================================== diff -u -r68896 -r69038 --- APPS/Halux/PPS/Document/impl/RVG/VoorbereidingSpecialWorkshop.cls.xml (.../VoorbereidingSpecialWorkshop.cls.xml) (revision 68896) +++ APPS/Halux/PPS/Document/impl/RVG/VoorbereidingSpecialWorkshop.cls.xml (.../VoorbereidingSpecialWorkshop.cls.xml) (revision 69038) @@ -13,8 +13,18 @@ 1 + +vhLib.Logger +1 + + + +TECH.Mail.MailAPI +1 + + -SpecialWorkshopDataGenerator:APPS.Halux.PPS.Document.impl.RVG.VoorbereidingSpecialWorkshop.SpecialWorkshopDataGenerator="",ToeleveringApi:DOM.AKP.ToeleveringAPI="" +SpecialWorkshopDataGenerator:APPS.Halux.PPS.Document.impl.RVG.VoorbereidingSpecialWorkshop.SpecialWorkshopDataGenerator="",ToeleveringApi:DOM.AKP.ToeleveringAPI="",Logger:vhLib.Logger="",MailApi:TECH.Mail.MailAPI="" 1 1 %Status @@ -24,6 +34,8 @@ Set ..SpecialWorkshopDataGenerator = $$$Inject(SpecialWorkshopDataGenerator, ##class(APPS.Halux.PPS.Document.impl.RVG.VoorbereidingSpecialWorkshop.SpecialWorkshopDataGenerator).%New()) Set ..ToeleveringApi = $$$Inject(ToeleveringApi,##class(DOM.DomeinContext).Instance().GeefToeleveringAPI()) + Set ..Logger = $$$Inject(Logger, ##class(vhLib.Logger).%New("APPS.Halux.PPS.Document.impl.RVG.VoorbereidingSpecialWorkshop")) + Set ..MailApi = $$$Inject(MailApi, ##class(TECH.Context).Instance().GeefMailAPI()) Quit $$$OK ]]> @@ -36,6 +48,7 @@ @@ -50,11 +63,16 @@ Set UitvoeringInfoIterator = ##class(TECH.ListIterator).%New(UitvoeringInfoLijst) While (UitvoeringInfoIterator.HasNext()) { - #dim UitvoeringInfo As APPS.Halux.PPS.Activiteit.impl.RVG.dto.VoorbereidingSpecialWorkshopUitvoeringInfo = UitvoeringInfoIterator.Next() - - #dim SpecialWorkshopData As APPS.Halux.PPS.Document.impl.RVG.VoorbereidingSpecialWorkshop.dto.SpecialWorkshopData = ..SpecialWorkshopDataGenerator.GenereerSpecialWorkshopData(UitvoeringInfo) - Do SpecialWorkshopDataLijst.Insert(SpecialWorkshopData) - + #dim UitvoeringInfo As APPS.Halux.PPS.Activiteit.impl.common.dto.DetailBladUitvoeringInfo = UitvoeringInfoIterator.Next() + Try { + Set UitvoeringInfo.Status = ##class(APPS.Halux.PPS.enu.UitvoeringStatus).InUitvoering() + #dim SpecialWorkshopData As APPS.Halux.PPS.Document.impl.RVG.VoorbereidingSpecialWorkshop.dto.SpecialWorkshopData = ..SpecialWorkshopDataGenerator.GenereerSpecialWorkshopData(UitvoeringInfo) + Do SpecialWorkshopDataLijst.Insert(SpecialWorkshopData) + } Catch { + #dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch() + Do ##class(vhLib.Logger).%New("APPS.Halux.PPS.Document.impl.RVG.VoorbereidingSpecialWorkshop").Error("GenereerSpecialWorkshopData", "Fout voor UitvoeringInfo " _ UitvoeringInfo.%Id() _ " " _ Exception.ToString()) + Set UitvoeringInfo.Status = ##class(APPS.Halux.PPS.enu.UitvoeringStatus).Fout() + } } Quit SpecialWorkshopDataLijst @@ -63,6 +81,7 @@ SpecialWorkshopDataLijst:%ListOfObjects +1 + + +SpecialWorkshopData:%ListOfObjects +1 + +