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 708 implement geef lijst besluiten zak lv01 #140

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
49,423 changes: 49,420 additions & 3 deletions e2e/SoapUI/zaakbrug-e2e-soapui-project.xml

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/main/configurations/Translate/Configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<!ENTITY DeleteRolFromZgw SYSTEM "./Configuration_DeleteRolFromZgw.xml">
<!ENTITY DetectRolChanges SYSTEM "./Configuration_DetectRolChanges.xml">
<!ENTITY Documenten_PostZgwEnkelvoudigInformatieObject SYSTEM "./Configuration_Documenten_PostZgwEnkelvoudigInformatieObject.xml">
<!ENTITY GeefLijstBesluiten_ZakLv01 SYSTEM "./Configuration_GeefLijstBesluiten_ZakLv01.xml">
<!ENTITY GeefLijstZaakdocumenten_Lv01 SYSTEM "./Configuration_GeefLijstZaakdocumenten_Lv01.xml">
<!ENTITY GeefZaakdetails_Lv01 SYSTEM "./Configuration_GeefZaakdetails_Lv01.xml">
<!ENTITY GeefZaakdocumentbewerken_Di02 SYSTEM "./Configuration_GeefZaakdocumentbewerken_Di02.xml">
Expand All @@ -33,6 +34,8 @@
<!ENTITY GetZgwInformatieObjectTypeByUrl SYSTEM "./Configuration_GetZgwInformatieObjectTypeByUrl.xml">
<!ENTITY GetZgwInformatieObjectUnlock SYSTEM "./Configuration_GetZgwInformatieObjectUnlock.xml">
<!ENTITY GetZdsZaakFromZgw SYSTEM "./Configuration_GetZdsZaakFromZgw.xml">
<!ENTITY GetZgwBesluitTypeByUrl SYSTEM "./Configuration_GetZgwBesluitTypeByUrl.xml">
<!ENTITY GetZgwBesluiten SYSTEM "./Configuration_GetZgwBesluiten.xml">
<!ENTITY GetZgwRolesByZaakUrl SYSTEM "./Configuration_GetZgwRolesByZaakUrl.xml">
<!ENTITY Zaken_GetZgwRolTypeByUrl SYSTEM "./Configuration_Zaken_GetZgwRolTypeByUrl.xml">
<!ENTITY Zaken_GetZgwRolTypeByZaakType SYSTEM "./Configuration_Zaken_GetZgwRolTypeByZaakType.xml">
Expand All @@ -41,6 +44,7 @@
<!ENTITY GetZgwZaakByUrl SYSTEM "./Configuration_GetZgwZaakByUrl.xml">
<!ENTITY GetZgwZaakInformatieObjectByEnkelvoudigInformatieObjectUrl SYSTEM "./Configuration_GetZgwZaakInformatieObjectByEnkelvoudigInformatieObjectUrl.xml">
<!ENTITY GetZgwZaakTypeByIdentificatie SYSTEM "./Configuration_GetZgwZaakTypeByIdentificatie.xml">
<!ENTITY HandleZgwBesluiten SYSTEM "./Configuration_HandleZgwBesluiten.xml">
<!ENTITY HandleZgwZaakInformatieObjecten SYSTEM "./Configuration_HandleZgwZaakInformatieObjecten.xml">
<!ENTITY ImportFromLocalFS SYSTEM "./Configuration_ImportFromLocalFS.xml">
<!ENTITY MapZdsDeelzakenFromZgwDeelzaken SYSTEM "./Configuration_MapZdsDeelzakenFromZgwDeelzaken.xml">
Expand Down Expand Up @@ -81,6 +85,7 @@
&DeleteRolFromZgw;
&DetectRolChanges;
&Documenten_PostZgwEnkelvoudigInformatieObject;
&GeefLijstBesluiten_ZakLv01;
&GeefLijstZaakdocumenten_Lv01;
&GeefZaakdetails_Lv01;
&GeefZaakdocumentbewerken_Di02;
Expand All @@ -102,6 +107,8 @@
&GetZaakTypeByUrl;
&GetZgwEnkelvoudigInformatieObjectByIdentificatie;
&GetZdsZaakFromZgw;
&GetZgwBesluitTypeByUrl;
&GetZgwBesluiten;
&GetZgwInformatieObjectTypeByOmschrijving;
&GetZgwInformatieObjectTypeByUrl;
&GetZgwInformatieObjectUnlock;
Expand All @@ -113,6 +120,7 @@
&GetZgwZaakByUrl;
&GetZgwZaakInformatieObjectByEnkelvoudigInformatieObjectUrl;
&GetZgwZaakTypeByIdentificatie;
&HandleZgwBesluiten;
&HandleZgwZaakInformatieObjecten;
&ImportFromLocalFS;
&MapZdsDeelzakenFromZgwDeelzaken;
Expand Down
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="GeefLijstBesluiten_ZakLv01"
active="${geefLijstBesluiten_ZakLv01.Active}"
description="">

<Receiver name="GeefLijstBesluiten_ZakLv01">
<JavaListener name="GeefLijstBesluiten_ZakLv01"/>
<JdbcErrorStorage
name="JdbcErrorStorage"
datasourceName="jdbc/${database.instance.name}"
slotId="${instance.name}/geefLijstBesluiten_ZakLv01"/>
</Receiver>

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

<SenderPipe
name="CallGetZgwZaak"
storeResultInSessionKey="GetZaakResult">
<IbisLocalSender
name="CallGetZgwZaakSender"
javaListener="GetZgwZaak">
<Param name="Identificatie" sessionKey="ZaakIdentificatie"/>
</IbisLocalSender>
<Forward name="success" path="CheckForGetZgwZaakResult"/>
<Forward name="exception" path="EXCEPTION" />
</SenderPipe>

<XmlIfPipe name="CheckForGetZgwZaakResult"
xpathExpression="count(ZgwZaken/ZgwZaak) = 1"
>
<Forward name="then" path="CallGetZgwBesluiten"/>
<Forward name="else" path="TRANSLATIONERROR"/>
</XmlIfPipe>

<SenderPipe
name="CallGetZgwBesluiten"
storeResultInSessionKey="GetZgwBesluitenResult">
<IbisLocalSender
name="CallZgwBesluitenSender"
javaListener="GetZgwBesluiten">
<Param name="ZaakUrl" xpathExpression="ZgwZaken/ZgwZaak/url"/>
</IbisLocalSender>
<Forward name="success" path="ZgwBesluitenIterator"/>
<Forward name="exception" path="EXCEPTION" />
</SenderPipe>

<ForEachChildElementPipe name="ZgwBesluitenIterator"
elementXPathExpression="/ZgwBesluiten/ZgwBesluit">
<IbisLocalSender
name="CallHandleZgwBesluiten"
javaListener="HandleZgwBesluiten">
</IbisLocalSender>
<Forward name="success" path="EXIT"/>
<Forward name="exception" path="EXCEPTION" />
</ForEachChildElementPipe>

</Pipeline>
</Adapter>
</Module>
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<Module xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../FrankConfig.xsd">
<Adapter name="GetZgwBesluitTypenUrl"
active="${GetZgwBesluitTypenUrl.Active}"
description="">

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

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

<SenderPipe name="GetZgwBesluitTypeByUrl"
getInputFromFixedValue="&lt;dummy/&gt;">
<HttpSender
name="GetZgwBesluitTypeByUrlSender"
methodType="GET"
headersParams="Authorization,Accept-Crs"
timeout="${zaakbrug.zgw.zaken-api.timeout}"
/>
<Param name="url" sessionKey="Url"/>
<Param name="Accept-Crs" value="EPSG:4326"/>
<Param name="Authorization" value="Bearer @@zaken-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="GetZgwBesluitTypeByUrl" />
<Forward name="success" path="EXCEPTION" />
</XsltPipe>

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

<XsltPipe
name="UnwrapOpenZaakApiEnvelopeToSingle"
styleSheetName="Common/xsl/UnwrapOpenZaakApiEnvelopeToSingle.xslt"
>
<Param name="Type" value="ZgwBesluitType"/>
<Forward name="success" path="EXIT"/>
<Forward name="error" path="EXCEPTION"/>
</XsltPipe>
</Pipeline>
</Adapter>
</Module>
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<Module xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../FrankConfig.xsd">
<Adapter name="GetZgwBesluiten"
active="${GetZgwBesluiten.Active}"
description="">

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

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

<SenderPipe name="GetZgwBesluitenSender"
getInputFromFixedValue="&lt;dummy/&gt;">
<HttpSender
name="GetZgwBesluitenHttpSender"
methodType="GET"
headersParams="Authorization,Accept-Crs"
timeout="${zaakbrug.zgw.besluiten-api.timeout}"
parametersToSkipWhenEmpty="*"
/>
<Param name="url" value="${zaakbrug.zgw.besluiten-api.root-url}besluiten"/>
<Param name="identificatie" sessionKey="Identificatie"/>
<Param name="verantwoordelijkeOrganisatie" sessionKey="VerantwoordelijkeOrganisatie"/>
<Param name="besluittype" sessionKey="Besluittype"/>
<Param name="zaak" sessionKey="ZaakUrl"/>
<Param name="page" sessionKey="Page"/>
<Param name="Accept-Crs" value="EPSG:4326"/>
<Param name="Authorization" value="Bearer @@besluiten-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="GetZgwBesluitenSender" />
<Forward name="success" path="EXCEPTION" />
</XsltPipe>

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

<XsltPipe
name="UnwrapOpenZaakApiEnvelopeToList"
styleSheetName="Common/xsl/UnwrapOpenZaakApiEnvelopeToList.xslt"
>
<Param name="Type" value="ZgwBesluit"/>
<Param name="List" value="ZgwBesluiten"/>
<Forward name="success" path="EXIT"/>
<Forward name="error" path="EXCEPTION"/>
</XsltPipe>
</Pipeline>
</Adapter>
</Module>
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<Module xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../FrankConfig.xsd">
<Adapter name="HandleZgwBesluiten"
active="${HandleZgwBesluiten.Active}"
description="">

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

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

<SenderPipe
name="CallGetZgwBesluitTypeByUrl"
storeResultInSessionKey="GetZgwBesluitTypeResult">
<IbisLocalSender
name="CallGetZgwBesluitTypeSender"
javaListener="GetZgwBesluitTypeByUrl">
<Param name="Url" xpathExpression="/ZgwBesluit/besluittype"/>
</IbisLocalSender>
<Forward name="success" path="MapLeidtTot"/>
<Forward name="exception" path="EXCEPTION" />
</SenderPipe>

<XsltPipe
name="MapLeidtTot"
getInputFromSessionKey="originalMessage"
styleSheetName="Zgw/Besluiten/Model/ZdsLeidtTot.xslt"
>
<Param name="ZgwBesluitType" sessionKey="GetZgwBesluitTypeResult" type="DOMDOC"/>
<Forward name="success" path="EXIT"/>
</XsltPipe>

</Pipeline>
</Adapter>
</Module>
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,28 @@
notFoundForwardName="UnsupportedSoapActionError"
/>

<!-- SenderPipes -->

<SenderPipe
name="http:__www.stufstandaarden.nl_koppelvlak_zds0120_geefLijstBesluiten_ZakLv01"
storeResultInSessionKey="GeefLijstBesluitenResult"
preserveInput="true">
<IbisLocalSender
name="GeefLijstBesluiten_ZakLv01LocalSender"
javaListener="GeefLijstBesluiten_ZakLv01">
<Param name="ZaakIdentificatie" xpathExpression="geefLijstBesluiten_ZakLv01/gelijk/identificatie"/>
</IbisLocalSender>
<Forward name="success" path="WrapZakLa01Response" />
<Forward name="exception" path="BackEndError" />
<Forward name="400" path="TranslationError" />
</SenderPipe>

<!-- SoapWrapperPipes -->
<SoapWrapperPipe
name="WrapZakLa01Response"
soapBodyStyleSheet="Zgw/Besluiten/Model/CreateGeefLijstBesluiten_ZakLa01Response.xslt"
>
<Param name="UnwrapMessageResult" type="DOMDOC"/>
<Forward name="success" path="EXIT"/>
</SoapWrapperPipe>

<!-- ERRORS -->
<XsltPipe
Expand All @@ -91,10 +110,16 @@
<Param name="errorReason" value="XML was invalid"/>
<Forward name="success" path="WrapFo03Response" />
</PutInSessionPipe>

<PutInSessionPipe name="TranslationError">
<Param name="errorCode" value="TranslationError"/>
<Param name="errorReason" value="Unable to translate XML"/>
<Forward name="success" path="WrapFo03Response" />
</PutInSessionPipe>

<PutInSessionPipe name="NotWellFormed">
<Param name="errorCode" value="NOT_WELL_FORMED_XML"/>
<Param name="errorReason" value="XML was not according to xsd"/>
<Param name="errorReason" value="XML was not according to xsd"/>
<Forward name="success" path="WrapFo03Response"/>
</PutInSessionPipe>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ CreeerZaak_Lk01.Active=true
DeleteRolFromZgw.Active=true
DetectRolChanges.Active=true
Documenten_PostZgwEnkelvoudigInformatieObject.Active=true
geefLijstBesluiten_ZakLv01.Active=true
GeefLijstZaakdocumenten_Lv01.Active=true
GeefZaakdetails_Lv01.Active=true
GeefZaakdocumentbewerken_Di02.Active=true
Expand All @@ -39,6 +40,8 @@ GetZaakInformatieObjectenByZaak.Active=true
GetZaakTypeByUrl.Active=true
GetZgwEnkelvoudigInformatieObjectByIdentificatie.Active=true
GetZdsZaakFromZgw.Active=true
GetZgwBesluitTypenUrl.Active=true
GetZgwBesluiten.Active=true
GetZgwInformatieObjectTypeByUrl.Active=true
GetZgwInformatieObjectTypeByOmschrijving.Active=true
GetZgwInformatieObjectUnlock.Active=true
Expand All @@ -50,6 +53,7 @@ GetZgwZaak.Active=true
GetZgwZaakByUrl.Active=true
GetZgwZaakInformatieObjectByEnkelvoudigInformatieObjectUrl.Active=true
GetZgwZaakTypeByIdentificatie.Active=true
HandleZgwBesluiten.Active=true
HandleZgwZaakInformatieObjecten.Active=true
ImportFromLocalFS.Active=true
MapZdsDeelzakenFromZgwDeelzaken.Active=true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ZKN="http://www.egem.nl/StUF/sector/zkn/0310" xmlns:zgw="http://google.com/zgw" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:StUF="http://www.egem.nl/StUF/StUF0301" xmlns:ZDS="http://www.stufstandaarden.nl/koppelvlak/zds0120" xmlns:BG="http://www.egem.nl/StUF/StUF0301" version="2.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="UnwrapMessageResult" as="node()?" />
<xsl:include href="../../ZgwFunctionsBase.xslt" />

<xsl:template match="/">
<ZDS:geefLijstBesluiten_ZakLa01>
<ZKN:stuurgegevens>
<StUF:berichtcode>La01</StUF:berichtcode>
<StUF:zender>
<StUF:organisatie><xsl:value-of select="$UnwrapMessageResult/*/stuurgegevens/ontvanger/organisatie"/></StUF:organisatie>
<StUF:applicatie><xsl:value-of select="$UnwrapMessageResult/*/stuurgegevens/ontvanger/applicatie"/></StUF:applicatie>
</StUF:zender>
<StUF:ontvanger>
<StUF:organisatie><xsl:value-of select="$UnwrapMessageResult/*/stuurgegevens/zender/organisatie"/></StUF:organisatie>
<StUF:applicatie><xsl:value-of select="$UnwrapMessageResult/*/stuurgegevens/zender/applicatie"/></StUF:applicatie>
<StUF:gebruiker><xsl:value-of select="$UnwrapMessageResult/*/stuurgegevens/zender/gebruiker"/></StUF:gebruiker>
</StUF:ontvanger>
<StUF:referentienummer><xsl:value-of select="$UnwrapMessageResult/*/stuurgegevens/referentienummer"/></StUF:referentienummer>
<StUF:tijdstipBericht><xsl:value-of select="format-dateTime(current-dateTime(), '[Y0001][M01][D01][H01][m01][s01]')"/></StUF:tijdstipBericht>
<StUF:crossRefnummer><xsl:value-of select="$UnwrapMessageResult/*/stuurgegevens/referentienummer"/></StUF:crossRefnummer>
<StUF:entiteittype>ZAK</StUF:entiteittype>
</ZKN:stuurgegevens>
<ZKN:parameters>
<StUF:indicatorVervolgvraag><xsl:value-of select="$UnwrapMessageResult/*/parameters/indicatorVervolgvraag"/></StUF:indicatorVervolgvraag>
</ZKN:parameters>
<ZKN:antwoord>
<ZKN:object StUF:entiteittype="ZAK">
<ZKN:identificatie><xsl:value-of select="$UnwrapMessageResult/*/gelijk/identificatie"/></ZKN:identificatie>
<xsl:for-each select="results/result/leidtTot">
<ZKN:leidtTot StUF:entiteittype="ZAKBSL">
<ZKN:gerelateerde StUF:entiteittype="BSL">
<!--filter scope-->
<xsl:for-each select="gerelateerde/*">
<xsl:if test="$UnwrapMessageResult/*/scope/object/@scope = 'alles' or $UnwrapMessageResult/*/scope/object/leidtTot/gerelateerde/*[local-name() = local-name(current())]">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>

</ZKN:gerelateerde>
</ZKN:leidtTot>
</xsl:for-each>
</ZKN:object>
</ZKN:antwoord>
</ZDS:geefLijstBesluiten_ZakLa01>
</xsl:template>
</xsl:stylesheet>
Loading
Loading