Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gt-690 Implement VoegBesluitToe_Di01 #142

Closed
wants to merge 65 commits into from
Closed
Show file tree
Hide file tree
Changes from 60 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
6ec2927
Implement "genereerBesluitIdentificatie_Di02" SOAP-action
MikeErkemey Jul 24, 2023
a5d412e
add besluit to configmap and add soapTestCase
MikeErkemey Jul 24, 2023
e8daa52
Merge branch 'GT-679-genereerBesluitIdentificatie_Di02' into GT-676_B…
MikeErkemey Jul 24, 2023
c98c165
refactor VrijeBerichten_v2 soapendpointrouter to use new template
MikeErkemey Jul 24, 2023
3fd826f
Base new structure has been added
Jul 24, 2023
bc34020
Update on VrijeBerichten_V2
Jul 27, 2023
bdaa32e
Merge branch 'master' into GT-676_Besluiten_API
Jul 27, 2023
83a981f
Merge branch 'GT-676_Besluiten_API' into GT-685-OntvangAsynchroon_mut…
Jul 27, 2023
766b9a7
removed redundant comments
Jul 27, 2023
dcc4192
Merge branch 'GT-676_Besluiten_API' into GT-685-OntvangAsynchroon_mut…
Jul 27, 2023
7a95870
Base files and configs have been added.
Jul 27, 2023
475f8c3
Typo
Jul 27, 2023
886c033
changes after the review
Jul 27, 2023
f0970c6
Merge branch 'GT-676_Besluiten_API' into GT-685-OntvangAsynchroon_mut…
Jul 27, 2023
867ce8e
Merge branch 'master' into GT-685-OntvangAsynchroon_mutatie_v2
Jul 27, 2023
6247bbe
yaml's are updated for ontvangAsynchroonMutatie_v2
Jul 27, 2023
cbacac6
Sender and SoapWrapper pipes've been removed.
Jul 27, 2023
35209ea
deleted file, will be added again
Jul 27, 2023
015a7dd
readding the file
Jul 27, 2023
34096e6
Merge branch 'master' into GT-685-OntvangAsynchroon_mutatie_v2
Jul 27, 2023
8cba79a
Handling UnsupportedSoapActionError
Jul 28, 2023
926ae76
removed voegBesluitToe from configs
Jul 28, 2023
4c446e6
Merge branch 'master' into GT-685-OntvangAsynchroon_mutatie_v2
Jul 28, 2023
0511f71
update configmap
Jul 28, 2023
e043569
error path changed
Jul 28, 2023
3cdcb00
back slashes changed to forward slashes in wsdl
Jul 28, 2023
609cf05
reoginising the confog files
Jul 28, 2023
e5ab4ce
VoegBesluitToe adapter structure created
Jul 31, 2023
6e48dc6
new besluitType added to catalog
Jul 31, 2023
750e095
Merge branch 'master' into GT-690-Implement-voegBesluitToe_Di01
Jul 31, 2023
9e3ef0c
New Adapter to get Rsin from GlobalConfig created.
Aug 3, 2023
398580e
Merge branch 'New_Adapter_For_Getting_Rsin' into GT-690-Implement-voe…
Aug 3, 2023
16a974f
forbidden chars replaced
Aug 3, 2023
8cc19ef
new Rsin adapter is applied
Aug 3, 2023
d0e67d8
greater than expression fixed
Aug 3, 2023
fdd3b38
greater than expression's been fixed
Aug 3, 2023
d20bd6e
Merge branch 'New_Adapter_For_Getting_Rsin' into GT-690-Implement-voe…
Aug 3, 2023
6bd5a34
get zaak by zaak identificatie pipe added.
Aug 7, 2023
a27fdca
genereerBesluitIdentificatie_Du02 namespace update
Aug 11, 2023
14d0623
forgotten namespace update
Aug 11, 2023
14db05f
PostZgwBesluit adapter created
Aug 15, 2023
71002cd
VoegBesluitToe_Di01 adapter is updated
Aug 15, 2023
6df739a
GetBesluitTypenByZaakType adapter created
Aug 15, 2023
33157bf
xslt file to filter besluittype for time created
Aug 15, 2023
21f6580
xslt filtering any element forTime but not working
Aug 15, 2023
2b9afd4
Files to create besluitbody and do postBesluit
Aug 15, 2023
41cc8fd
besluitAPI is added to config
Aug 15, 2023
90b25d8
new adapters are added to configs
Aug 15, 2023
b341c1c
SoapUI test case updated
Aug 15, 2023
5410ec3
Relocating the file
Aug 16, 2023
ba214b5
open zaak besluit-api endpoint added to config
Aug 16, 2023
319b1b1
zgwBesluit xslt file updated
Aug 16, 2023
b86724a
Merge branch 'master' into GT-690-Implement-voegBesluitToe_Di01
Aug 16, 2023
2416f35
duplicated besluitAPI endpoint removed
Aug 16, 2023
df162d5
ZgwBesluitType and ZgwZaak params added
Aug 16, 2023
adead3a
prettier
Aug 16, 2023
7b95ee5
File removed and created in another branch
Aug 16, 2023
83d7211
duplicated url's removed
Aug 17, 2023
bfd780a
typo
Aug 17, 2023
fa527df
ZgwBesluitApi.xsd file updated
Aug 17, 2023
2fd0ec8
fix: SOAPUI e2e tests removed to merge master
Sep 21, 2023
c02619d
Merge branch 'master' into GT-690-Implement-voegBesluitToe_Di01
Sep 21, 2023
3a1a752
fix: parameter name and sessionKey've been updated
Sep 21, 2023
9df1c1b
test: SOAPUI e2e tests for besluitAPI recreated
Sep 21, 2023
c921be9
fix: name of sessionKey is updated
Sep 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions charts/zaakbrug/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,24 +92,24 @@ data:
zaakbrug.zgw.documenten-api.auth-type: {{ .authType }}
zaakbrug.zgw.documenten-api.auth-alias: {{ .authAlias }}
{{- end }}
{{- with .catalogiApi }}
zaakbrug.zgw.catalogi-api.root-url: {{ .rootUrl }}
zaakbrug.zgw.catalogi-api.timeout: {{ toString (.timeout | default 20000 | quote) }}
zaakbrug.zgw.catalogi-api.auth-type: {{ .authType }}
zaakbrug.zgw.catalogi-api.auth-alias: {{ .authAlias }}
{{- end }}
{{- with .besluitenApi }}
zaakbrug.zgw.besluiten-api.root-url: {{ .rootUrl }}
zaakbrug.zgw.besluiten-api.timeout: {{ toString (.timeout | default 20000 | quote) }}
zaakbrug.zgw.besluiten-api.auth-type: {{ .authType }}
zaakbrug.zgw.besluiten-api.auth-alias: {{ .authAlias }}
{{- end }}
{{- with .catalogiApi }}
zaakbrug.zgw.catalogi-api.root-url: {{ .rootUrl }}
zaakbrug.zgw.catalogi-api.timeout: {{ toString (.timeout | default 20000 | quote) }}
zaakbrug.zgw.catalogi-api.auth-type: {{ .authType }}
zaakbrug.zgw.catalogi-api.auth-alias: {{ .authAlias }}
{{- end }}
{{- end }}
{{- with .Values.staging }}
zaakbrug.staging.zaken-api.root-url: {{ .zakenApi.rootUrl }}
zaakbrug.staging.documenten-api.root-url: {{ .documentenApi.rootUrl }}
zaakbrug.staging.catalogi-api.root-url: {{ .catalogiApi.rootUrl }}
zaakbrug.staging.besluiten-api.root-url: {{ .besluitenApi.rootUrl }}
zaakbrug.staging.catalogi-api.root-url: {{ .catalogiApi.rootUrl }}
{{- end }}
---
apiVersion: v1
Expand Down
4 changes: 2 additions & 2 deletions charts/zaakbrug/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ staging:
rootUrl: http://zaakbrug-staging-nginx.zaakbrug/zaken/api/v1/
documentenApi:
rootUrl: http://zaakbrug-staging-nginx.zaakbrug/documenten/api/v1/
catalogiApi:
rootUrl: http://zaakbrug-staging-nginx.zaakbrug/catalogi/api/v1/
besluitenApi:
rootUrl: http://zaakbrug-staging-nginx.zaakbrug/besluiten/api/v1/
catalogiApi:
rootUrl: http://zaakbrug-staging-nginx.zaakbrug/catalogi/api/v1/
extraEnvVars:
- name: NOTIFICATIONS_DISABLED
value: "yes"
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.openzaak.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ services:
environment:
- zaakbrug.zgw.zaken-api.root-url=http://open-zaak.nginx:9001/zaken/api/v1/
- zaakbrug.zgw.documenten-api.root-url=http://open-zaak.nginx:9001/documenten/api/v1/
- zaakbrug.zgw.catalogi-api.root-url=http://open-zaak.nginx:9001/catalogi/api/v1/
- zaakbrug.zgw.besluiten-api.root-url=http://open-zaak.nginx:9001/besluiten/api/v1/
- zaakbrug.zgw.catalogi-api.root-url=http://open-zaak.nginx:9001/catalogi/api/v1/

volumes:
open-zaak-db:
Expand Down
Binary file added e2e/OpenZaak/wearefrank-e2e-2023-07-31.zip
Binary file not shown.
49,695 changes: 49,685 additions & 10 deletions e2e/SoapUI/zaakbrug-e2e-soapui-project.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:StUF="http://www.egem.nl/StUF/StUF0301" xmlns:ZKN="http://www.stufstandaarden.nl/koppelvlak/zds0120" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:StUF="http://www.egem.nl/StUF/StUF0301" xmlns:ZKN="http://www.egem.nl/StUF/sector/zkn/0310" xmlns:ZDS="http://www.stufstandaarden.nl/koppelvlak/zds0120" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="UnwrapMessageResult" as="node()?" />
<xsl:param name="Identificatie" select="''" as="xs:string" />

<xsl:template match="/">
<ZKN:genereerBesluitIdentificatie_Du02>
<ZKN:stuurgegevens>
<ZDS:genereerBesluitIdentificatie_Du02>
<ZDS:stuurgegevens>
<StUF:berichtcode>Du02</StUF:berichtcode>
<StUF:zender>
<StUF:organisatie><xsl:value-of select="$UnwrapMessageResult/*/stuurgegevens/ontvanger/organisatie"/></StUF:organisatie>
Expand All @@ -20,10 +20,10 @@
<StUF:tijdstipBericht><xsl:value-of select="$UnwrapMessageResult/*/stuurgegevens/tijdstipBericht"/></StUF:tijdstipBericht>
<StUF:crossRefnummer><xsl:value-of select="$UnwrapMessageResult/*/stuurgegevens/referentienummer"/></StUF:crossRefnummer>
<StUF:functie>genereerBesluitidentificatie</StUF:functie>
</ZKN:stuurgegevens>
<ZKN:besluit StUF:entiteittype="BSL" StUF:functie="entiteit">
</ZDS:stuurgegevens>
<ZDS:besluit StUF:entiteittype="BSL" StUF:functie="entiteit">
<ZKN:identificatie xmlns:ZKN="http://www.egem.nl/StUF/sector/zkn/0310"><xsl:value-of select="$Identificatie"/></ZKN:identificatie>
</ZKN:besluit>
</ZKN:genereerBesluitIdentificatie_Du02>
</ZDS:besluit>
</ZDS:genereerBesluitIdentificatie_Du02>
</xsl:template>
</xsl:stylesheet>
6 changes: 6 additions & 0 deletions src/main/configurations/Translate/Configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<!ENTITY GeefZaakdocumentLezen_Lv01 SYSTEM "./Configuration_GeefZaakdocumentLezen_Lv01.xml">
<!ENTITY GenereerIdentificatieEmulator SYSTEM "./Configuration_GenereerIdentificatieEmulator.xml">
<!ENTITY GetBas64Inhoud SYSTEM "./Configuration_GetBas64Inhoud.xml">
<!ENTITY GetBesluitTypenByZaakType SYSTEM "./Configuration_GetBesluitTypenByZaakType.xml">
<!ENTITY GetResultaatTypeByZaakTypeAndOmschrijving SYSTEM "./Configuration_GetResultaatTypeByZaakTypeAndOmschrijving.xml">
<!ENTITY GetResultatenByZaakUrl SYSTEM "./Configuration_GetResultatenByZaakUrl.xml">
<!ENTITY GetRolByZaakUrlAndRolTypeUrl SYSTEM "./Configuration_GetRolByZaakUrlAndRolTypeUrl.xml">
Expand Down Expand Up @@ -46,6 +47,7 @@
<!ENTITY MapZdsRelevanteAndereZaakFromZgwRelevanteAndereZaken SYSTEM "./Configuration_MapZdsRelevanteAndereZaakFromZgwRelevanteAndereZaken.xml">
<!ENTITY MapZdsRolFromZgwRol SYSTEM "./Configuration_MapZdsRolFromZgwRol.xml">
<!ENTITY PatchRelevanteAndereZaak SYSTEM "./Configuration_PatchRelevanteAndereZaak.xml">
<!ENTITY PostZgwBesluit SYSTEM "./Configuration_PostZgwBesluit.xml">
<!ENTITY PostResultaat SYSTEM "./Configuration_PostResultaat.xml">
<!ENTITY Zaken_PostZgwRol SYSTEM "./Configuration_Zaken_PostZgwRol.xml">
<!ENTITY Zaken_PostZgwStatus SYSTEM "./Configuration_Zaken_PostZgwStatus.xml">
Expand All @@ -63,6 +65,7 @@
<!ENTITY UpdateZaak_Lk01 SYSTEM "./Configuration_UpdateZaak_LK01.xml">
<!ENTITY UpdateZaakDocument_Di02 SYSTEM "./Configuration_UpdateZaakDocument_Di02.xml">
<!ENTITY VoegZaakdocumentToe_Lk01 SYSTEM "./Configuration_VoegZaakdocumentToe_Lk01.xml">
<!ENTITY VoegBesluitToe_Di01 SYSTEM "./Configuration_VoegBesluitToe_Di01.xml">
<!ENTITY Zaken_PostZgwZaakInformatieObject SYSTEM "./Configuration_Zaken_PostZgwZaakInformatieObject.xml">
<!ENTITY Zaken_UpdateZgwZaak SYSTEM "./Configuration_Zaken_UpdateZgwZaak.xml">
<!ENTITY ZdsHeeft SYSTEM "./Configuration_ZdsHeeft.xml">
Expand All @@ -84,6 +87,7 @@
&GeefZaakdocumentLezen_Lv01;
&GenereerIdentificatieEmulator;
&GetBas64Inhoud;
&GetBesluitTypenByZaakType;
&GetResultaatTypeByZaakTypeAndOmschrijving;
&GetResultatenByZaakUrl;
&GetRolByZaakUrlAndRolTypeUrl;
Expand Down Expand Up @@ -116,6 +120,7 @@
&MapZdsRelevanteAndereZaakFromZgwRelevanteAndereZaken;
&MapZdsRolFromZgwRol;
&PatchRelevanteAndereZaak;
&PostZgwBesluit;
&PostResultaat;
&Zaken_PostZgwRol;
&Zaken_PostZgwStatus;
Expand All @@ -133,6 +138,7 @@
&UpdateZaak_Lk01;
&UpdateZaakDocument_Di02;
&VoegZaakdocumentToe_Lk01;
&VoegBesluitToe_Di01;
&Zaken_PostZgwZaakInformatieObject;
&Zaken_UpdateZgwZaak;
&ZdsHeeft;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<Module xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../FrankConfig.xsd">
<Adapter name="GetBesluitTypenByZaakType"
active="${GetBesluitTypenByZaakType.Active}"
description="">

<Receiver name="GetBesluitTypenByZaakType">
<JavaListener name="GetBesluitTypenByZaakType"/>
</Receiver>

<Pipeline>
<Exits>
<Exit name="EXIT" state="SUCCESS"/>
<Exit name="EXCEPTION" state="ERROR"/>
</Exits>

<SenderPipe name="GetZgwBesluitTypenByZaakTypeSender"
getInputFromFixedValue="&lt;dummy/&gt;">
<HttpSender
name="GetZgwBesluitTypenByZaakTypeHttpSender"
methodType="GET"
headersParams="Authorization"
timeout="${zaakbrug.zgw.catalogi-api.timeout}"
/>
<Param name="url" value="${zaakbrug.zgw.catalogi-api.root-url}besluittypen"/>
<Param name="zaaktypen" sessionKey="ZgwZaakTypeUrl"/>
<Param name="status" value="definitief"/>
<Param name="Authorization" value="Bearer @@catalogi-api.jwt@@"/>
<Forward name="success" path="JsonToXml" />
<Forward name="exception" path="ErrorJsonToXml" />
</SenderPipe>
<JsonPipe name="ErrorJsonToXml">
<Forward name="success" path="buildErrorMsg" />
</JsonPipe>
<XsltPipe name="buildErrorMsg"
styleSheetName="Common/xsl/ParseNegativeHttpResult.xsl">
<Param name="senderPipeName" value="GetBesluitTypenByZaakTypeSender" />
<Forward name="success" path="EXCEPTION" />
</XsltPipe>

<JsonPipe name="JsonToXml">
<Forward name="success" path="UnwrapOpenZaakApiEnvelopeToSingle"/>
</JsonPipe>

<XsltPipe
name="UnwrapOpenZaakApiEnvelopeToSingle"
styleSheetName="Common/xsl/UnwrapOpenZaakApiEnvelopeToList.xslt"
>
<Param name="Type" value="ZgwBesluitType"/>
<Param name="List" value="ZgwBesluitTypen"/>
<Forward name="success" path="EXIT"/>
<Forward name="error" path="EXCEPTION"/>
</XsltPipe>
</Pipeline>
</Adapter>
</Module>
64 changes: 64 additions & 0 deletions src/main/configurations/Translate/Configuration_PostZgwBesluit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<Module xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../FrankConfig.xsd">
<Adapter name="PostZgwBesluitAdapter"
active="${PostZgwBesluitAdapter.Active}"
description="">

<Receiver name="PostZgwBesluitAdapter">
<JavaListener name="PostZgwBesluitAdapter" />
</Receiver>

<Pipeline>
<Exits>
<Exit name="EXIT" state="SUCCESS" />
<Exit name="EXCEPTION" state="ERROR" />
</Exits>

<SenderPipe name="PostZgwBesluit">

<Json2XmlInputValidator name="ValidatePost"
schema="Zgw/Besluiten/Model/PostZgwBesluit.xsd"
root="ZgwBesluit"
outputFormat="JSON"
deepSearch="true"
throwException="true"
/>
<HttpSender name="PostZgwBesluitSender"
methodType="POST"
headersParams="Authorization, Accept"
timeout="${zaakbrug.zgw.besluiten-api.timeout}"
maxExecuteRetries="5"
contentType="application/json">
<Param name="url" value="${zaakbrug.zgw.besluiten-api.root-url}besluiten"/>
<Param name="Authorization" value="Bearer @@zaken-api.jwt@@" />
<Param name="Accept" value="application/json" />
</HttpSender>

<Forward name="success" path="JsonToXml" />
<Forward name="exception" path="ErrorJsonToXml" />
</SenderPipe>
<JsonPipe name="ErrorJsonToXml">
<Forward name="success" path="buildErrorMsg" />
</JsonPipe>
<XsltPipe name="buildErrorMsg"
styleSheetName="Common/xsl/ParseNegativeHttpResult.xsl">
<Param name="senderPipeName" value="PostZgwBesluit" />
<Forward name="success" path="EXCEPTION" />
</XsltPipe>

<JsonPipe name="JsonToXml"
storeResultInSessionKey="PostZgwBesluitResult">
<Forward name="success" path="UnwrapOpenZaakApiEnvelopeToSingle" />
</JsonPipe>

<XsltPipe
name="UnwrapOpenZaakApiEnvelopeToSingle"
styleSheetName="Common/xsl/UnwrapOpenZaakApiEnvelopeToSingle.xslt"
>
<Param name="Type" value="ZgwBesluit" />
<Forward name="success" path="EXIT" />
<Forward name="error" path="EXCEPTION" />
</XsltPipe>
</Pipeline>
</Adapter>
</Module>
Loading