Index: vhTest/Mock/APPS/TRANSP/GLS/CommunicatieService.cls.xml
===================================================================
diff -u -r40369 -r40503
--- vhTest/Mock/APPS/TRANSP/GLS/CommunicatieService.cls.xml (.../CommunicatieService.cls.xml) (revision 40369)
+++ vhTest/Mock/APPS/TRANSP/GLS/CommunicatieService.cls.xml (.../CommunicatieService.cls.xml) (revision 40503)
@@ -6,7 +6,7 @@
Een hercompilatie van de basis interface - met een correct werkende studiohook ( v2.20 ++ ) - zorgt ervoor dat deze klasse aangepast wordt
Inheritance van meerdere TECH.Interface interfaces resulteert nog niet in een mockklasse met overeenkomstige inheritance-structuur.
1
-APPS.TRANSP.GLS.CommunicatieService,Tools.Mock.MockClassBase
+APPS.TRANSP.GLS.GLSv1.CommunicatieServiceLocator,Tools.Mock.MockClassBase
right
Index: APPS/TRANSP/GLS/GLSv1/impl/CommunicatieServiceLocator.cls.xml
===================================================================
diff -u
--- APPS/TRANSP/GLS/GLSv1/impl/CommunicatieServiceLocator.cls.xml (revision 0)
+++ APPS/TRANSP/GLS/GLSv1/impl/CommunicatieServiceLocator.cls.xml (revision 40503)
@@ -0,0 +1,32 @@
+
+
+
+TECH.RegisteredObject,APPS.TRANSP.GLS.GLSv1.CommunicatieServiceLocator
+
+
+APPS.TRANSP.GLS.GLSv1.VerzendWijzeBepaler
+
+
+
+
+APPS.TRANSP.GLS.GLSv1.Bericht.RequestDataBouwer
+
+
+
+
+APPS.TRANSP.GLS.GLSv1.UnitIdBepaler
+
+
+
+
+APPS.TRANSP.GLS.GLSv1.DienstBepaler
+
+
+
+
+
+
Index: APPS/TRANSP/GLS/GLSv1/impl/GLSEigenschappen.cls.xml
===================================================================
diff -u -r40369 -r40503
--- APPS/TRANSP/GLS/GLSv1/impl/GLSEigenschappen.cls.xml (.../GLSEigenschappen.cls.xml) (revision 40369)
+++ APPS/TRANSP/GLS/GLSv1/impl/GLSEigenschappen.cls.xml (.../GLSEigenschappen.cls.xml) (revision 40503)
@@ -74,7 +74,7 @@
%Status
%Status
Index: CHUI/MN/TRANSPCLOE.cls.xml
===================================================================
diff -u -r29059 -r40503
--- CHUI/MN/TRANSPCLOE.cls.xml (.../TRANSPCLOE.cls.xml) (revision 29059)
+++ CHUI/MN/TRANSPCLOE.cls.xml (.../TRANSPCLOE.cls.xml) (revision 40503)
@@ -21,7 +21,7 @@
#dim RitID As %String = $P(DataR,"\",21)
#dim TransporteurNr As %String = $P(DataR,"\")
- #dim CommunicatieService As APPS.TRANSP.GLS.CommunicatieService = ##class(APPS.ApplicatieContext).Instance().GeefTransportAPI().GeefCommunicatieService(TransporteurNr)
+ #dim CommunicatieService As APPS.TRANSP.CommunicatieService = ##class(APPS.ApplicatieContext).Instance().GeefTransportAPI().GeefCommunicatieService(TransporteurNr)
Do CommunicatieService.ControleerRitVoorBevestiging(RitID)
do CLOSVERV^TRANSPC(%J,.SelClose,"OT")
Index: APPS/TRANSP/GLS/GLSv1/Bericht/impl/RequestDataBouwer.cls.xml
===================================================================
diff -u -r40477 -r40503
--- APPS/TRANSP/GLS/GLSv1/Bericht/impl/RequestDataBouwer.cls.xml (.../RequestDataBouwer.cls.xml) (revision 40477)
+++ APPS/TRANSP/GLS/GLSv1/Bericht/impl/RequestDataBouwer.cls.xml (.../RequestDataBouwer.cls.xml) (revision 40503)
@@ -89,8 +89,8 @@
VerzendData:APPS.TRANSP.GLS.dto.VerzendData,IsLaatsteUnit:%Boolean=0
APPS.TRANSP.GLS.GLSv1.Bericht.dto.ParcelReleaseRequest
%String
-
+
1
-TECH.Interface,APPS.TRANSP.CommunicatieService
+TECH.Interface
1
Index: APPS/TRANSP/GLS/impl/CommunicatieService.cls.xml
===================================================================
diff -u -r40426 -r40503
--- APPS/TRANSP/GLS/impl/CommunicatieService.cls.xml (.../CommunicatieService.cls.xml) (revision 40426)
+++ APPS/TRANSP/GLS/impl/CommunicatieService.cls.xml (.../CommunicatieService.cls.xml) (revision 40503)
@@ -2,15 +2,32 @@
vhLib.Macro
-APPS.TRANSP.impl.CommunicatieService,APPS.TRANSP.GLS.CommunicatieService
+APPS.TRANSP.impl.CommunicatieService
+
+APPS.TRANSP.GLS.GLSv1.impl.CommunicatieServiceLocator
+1
+
+
+
+CommunicatieServiceLocator:APPS.TRANSP.GLS.GLSv1.impl.CommunicatieServiceLocator
+1
+1
+%Status
+1
+
+
+
RitID:%String,LeveringID:%String
%String
@@ -20,7 +37,7 @@
@@ -35,89 +52,18 @@
#dim Rit As DOM.TRANSP.Rit = ##class(DOM.DomeinContext).Instance().GeefTransportAPI().GeefRit(RitID)
#dim itLevering As TECH.ListIterator = Rit.GeefLeveringIterator()
while itLevering.HasNext() {
- set BevestigLevering = ##class(APPS.TRANSP.GLS.impl.CommunicatieService.BevestigLevering).%New($this,Rit,itLevering.Next())
+ set BevestigLevering = ##class(APPS.TRANSP.GLS.impl.CommunicatieService.BevestigLevering).%New(..CommunicatieServiceLocator,Rit,itLevering.Next())
do BevestigLevering.VoerUit()
}
]]>
-
-
-Response:APPS.TRANSP.GLS.GLSv1.Bericht.dto.Response
-%Boolean
-
-
-
-
-Response:APPS.TRANSP.GLS.GLSv1.Bericht.dto.Response
-APPS.TRANSP.GLS.GLSv1.Bericht.dto.Error
-
-
-
-
-APPS.TRANSP.GLS.GLSv1.VerzendWijzeBepaler
-
-
-
-
-APPS.TRANSP.GLS.GLSv1.Bericht.RequestDataBouwer
-
-
-
-
-APPS.TRANSP.GLS.GLSv1.UnitIdBepaler
-
-
-
-
-APPS.TRANSP.GLS.GLSv1.DienstBepaler
-
-
Index: APPS/TRANSP/GLS/GLSv1/impl/CommunicatieService.cls.xml
===================================================================
diff -u -r40367 -r40503
--- APPS/TRANSP/GLS/GLSv1/impl/CommunicatieService.cls.xml (.../CommunicatieService.cls.xml) (revision 40367)
+++ APPS/TRANSP/GLS/GLSv1/impl/CommunicatieService.cls.xml (.../CommunicatieService.cls.xml) (revision 40503)
@@ -8,8 +8,8 @@
1
-
-APPS.TRANSP.GLS.CommunicatieService
+
+APPS.TRANSP.GLS.GLSv1.CommunicatieServiceLocator
1
@@ -19,14 +19,15 @@
-CommunicatieService:APPS.TRANSP.GLS.CommunicatieService
+CommunicatieServiceLocator:APPS.TRANSP.GLS.GLSv1.CommunicatieServiceLocator
1
1
%Status
1
@@ -96,7 +97,7 @@
Try {
#dim Response As APPS.TRANSP.GLS.GLSv1.Bericht.dto.Response = ..VerzendBericht(Request)
- }Catch {
+ } Catch {
#dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch()
Do ##class(vhLib.Logger).%New("GLS").ErrorMail("VerwerkRequest","Verzenden bericht mislukt."_$C(13,10)_$C(13,10)_Exception.ToString())
Set Error =##class(APPS.TRANSP.GLS.GLSv1.Bericht.dto.Error).%New("E999",Exception.GeefOmschrijving())
@@ -105,10 +106,10 @@
set VerzendData.Response = Response
- If ..CommunicatieService.ResponseBevatFout(Response) {
+ If ..ResponseBevatFout(Response) {
set VerzendData.Status = ##class(APPS.TRANSP.GLS.GLSv1.Bericht.enu.Status).Failed()
do VerzendData.Save()
- Set Error = ..CommunicatieService.GeefFoutInResponse(Response)
+ Set Error = ..GeefFoutInResponse(Response)
do ..ThrowError(Error, VerzendData)
}
@@ -210,6 +211,53 @@
Quit BerichtVoorICT
]]>
+
+
+Response:APPS.TRANSP.GLS.GLSv1.Bericht.dto.Response
+%Boolean
+
+
+
+
+Response:APPS.TRANSP.GLS.GLSv1.Bericht.dto.Response
+APPS.TRANSP.GLS.GLSv1.Bericht.dto.Error
+
+
Index: APPS/TRANSP/GLS/impl/CommunicatieService/Template.cls.xml
===================================================================
diff -u -r40367 -r40503
--- APPS/TRANSP/GLS/impl/CommunicatieService/Template.cls.xml (.../Template.cls.xml) (revision 40367)
+++ APPS/TRANSP/GLS/impl/CommunicatieService/Template.cls.xml (.../Template.cls.xml) (revision 40503)
@@ -29,12 +29,13 @@
-CommunicatieService:APPS.TRANSP.GLS.CommunicatieService,Rit:DOM.TRANSP.Rit,Levering:DOM.TRANSP.Levering
+CommunicatieService:APPS.TRANSP.GLS.GLSv1.CommunicatieServiceLocator,Rit:DOM.TRANSP.Rit,Levering:DOM.TRANSP.Levering
1
1
%Status
1
@@ -18,7 +18,7 @@
set Response = ##class(APPS.TRANSP.GLS.GLSv1.Bericht.dto.Response).%New()
set Response.E000 = ""
- set CommunicatieService = ##class(APPS.TRANSP.GLS.impl.CommunicatieService).%New()
+ set CommunicatieService = ##class(APPS.TRANSP.GLS.GLSv1.impl.CommunicatieService).%New()
do $$$AssertFalse(CommunicatieService.ResponseBevatFout(Response))
]]>
@@ -28,7 +28,7 @@
set Response = ##class(APPS.TRANSP.GLS.GLSv1.Bericht.dto.Response).%New()
set Response.E000 = "123456"
- set CommunicatieService = ##class(APPS.TRANSP.GLS.impl.CommunicatieService).%New()
+ set CommunicatieService = ##class(APPS.TRANSP.GLS.GLSv1.impl.CommunicatieService).%New()
do $$$AssertFalse(CommunicatieService.ResponseBevatFout(Response))
]]>
@@ -38,11 +38,11 @@
set Response = ##class(APPS.TRANSP.GLS.GLSv1.Bericht.dto.Response).%New()
set Response.E000 = "no errors have occured"
- set CommunicatieService = ##class(APPS.TRANSP.GLS.impl.CommunicatieService).%New()
+ set CommunicatieService = ##class(APPS.TRANSP.GLS.GLSv1.impl.CommunicatieService).%New()
do $$$AssertFalse(CommunicatieService.ResponseBevatFout(Response))
set Response.E000 = "ADA"
- set CommunicatieService = ##class(APPS.TRANSP.GLS.impl.CommunicatieService).%New()
+ set CommunicatieService = ##class(APPS.TRANSP.GLS.GLSv1.impl.CommunicatieService).%New()
do $$$AssertFalse(CommunicatieService.ResponseBevatFout(Response))
]]>
@@ -51,7 +51,7 @@
@@ -61,7 +61,7 @@
set Response = ##class(APPS.TRANSP.GLS.GLSv1.Bericht.dto.Response).%New()
set Response.E001 = "We hebben een error gekregen van GLS"
- set CommunicatieService = ##class(APPS.TRANSP.GLS.impl.CommunicatieService).%New()
+ set CommunicatieService = ##class(APPS.TRANSP.GLS.GLSv1.impl.CommunicatieService).%New()
do $$$AssertTrue(CommunicatieService.ResponseBevatFout(Response))
]]>
@@ -71,7 +71,7 @@
set Response = ##class(APPS.TRANSP.GLS.GLSv1.Bericht.dto.Response).%New()
set Response.E006 = "Dit is een foutmelding."
- set CommunicatieService = ##class(APPS.TRANSP.GLS.impl.CommunicatieService).%New()
+ set CommunicatieService = ##class(APPS.TRANSP.GLS.GLSv1.impl.CommunicatieService).%New()
#dim Error As APPS.TRANSP.GLS.GLSv1.Bericht.dto.Error = CommunicatieService.GeefFoutInResponse(Response)
do $$$AssertEquals("not able to make the routing : Dit is een foutmelding.",Error.Omschrijving)
do $$$AssertEquals("E006",Error.ErrorCode)
@@ -101,7 +101,7 @@
Property:%String,VerwachtNiveau:TECH.Exceptions.enu.Niveau,Type:%String(VALUELIST=",P,F")="P"
1
Index: vhTest/Mock/APPS/TRANSP/GLS/GLSv1/CommunicatieServiceLocator.cls.xml
===================================================================
diff -u
--- vhTest/Mock/APPS/TRANSP/GLS/GLSv1/CommunicatieServiceLocator.cls.xml (revision 0)
+++ vhTest/Mock/APPS/TRANSP/GLS/GLSv1/CommunicatieServiceLocator.cls.xml (revision 40503)
@@ -0,0 +1,38 @@
+
+
+
+
+Deze klasse werd automatisch gegenereerd en onderhouden - lokale aanpassingen zijn niet nodig.
+Een hercompilatie van de basis interface - met een correct werkende studiohook ( v2.20 ++ ) - zorgt ervoor dat deze klasse aangepast wordt
+Inheritance van meerdere TECH.Interface interfaces resulteert nog niet in een mockklasse met overeenkomstige inheritance-structuur.
+1
+APPS.TRANSP.GLS.GLSv1.CommunicatieServiceLocator,Tools.Mock.MockClassBase
+right
+
+
+APPS.TRANSP.GLS.GLSv1.DienstBepaler
+
+
+
+
+APPS.TRANSP.GLS.GLSv1.Bericht.RequestDataBouwer
+
+
+
+
+APPS.TRANSP.GLS.GLSv1.UnitIdBepaler
+
+
+
+
+APPS.TRANSP.GLS.GLSv1.VerzendWijzeBepaler
+
+
+
+
+
+
Index: APPS/TRANSP/impl/CommunicatieService.cls.xml
===================================================================
diff -u -r29059 -r40503
--- APPS/TRANSP/impl/CommunicatieService.cls.xml (.../CommunicatieService.cls.xml) (revision 29059)
+++ APPS/TRANSP/impl/CommunicatieService.cls.xml (.../CommunicatieService.cls.xml) (revision 40503)
@@ -1,7 +1,7 @@
-%RegisteredObject,APPS.TRANSP.CommunicatieService
+TECH.RegisteredObject,APPS.TRANSP.CommunicatieService
RitID:%String,LeveringID:%String