Skip to content

Commit

Permalink
fix: updateZaak when deleting an existing gerelateerde and add new on…
Browse files Browse the repository at this point in the history
…e back on the same role performs add action before delete action resulting in an error when only 1 of that roltype is allowed
  • Loading branch information
MLenterman committed Sep 3, 2024
1 parent ac0cade commit 34ff319
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 7 deletions.
21 changes: 18 additions & 3 deletions src/main/configurations/Translate/Configuration_RolHandler.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,26 @@
skipEmptyTags="true"
styleSheetName="UpdateZaak_LK01/xsl/SetRoles.xsl"
>
<Forward name="success" path="CallDetectRolChanges"/>
<Forward name="success" path="CallDetectRolChangesDelete"/>
</XsltPipe>

<ForEachChildElementPipe name="CallDetectRolChanges"
elementXPathExpression="/roles/role"
<ForEachChildElementPipe name="CallDetectRolChangesDelete"
elementXPathExpression="/roles/role[gerelateerde/@*:verwerkingssoort = 'V']"
storeResultInSessionKey="RolChangesResults">
<IbisLocalSender
name="CallDetectRolChangesSender"
javaListener="DetectRolChanges"
returnedSessionKeys="Error">
<Param sessionKey="RolBody_1" type="DOMDOC"/>
</IbisLocalSender>
<Forward name="success" path="CallDetectRolChanges"/>
<Forward name="exception" path="EXCEPTION" />
</ForEachChildElementPipe>

<ForEachChildElementPipe
name="CallDetectRolChanges"
getInputFromSessionKey="zdsWordtZaak"
elementXPathExpression="/roles/role[gerelateerde/@*:verwerkingssoort != 'V']"
storeResultInSessionKey="RolChangesResults">
<IbisLocalSender
name="CallDetectRolChangesSender"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,32 @@
styleSheetName="UpdateZaak_LK01/xsl/SetRoles.xslt"
>
<Param name="RolMapping" sessionKey="GlobalConfig" type="DOMDOC"/>
<Forward name="success" path="CallDetectRolChanges"/>
<Forward name="success" path="CallDetectRolChangesDelete"/>
</XsltPipe>

<ForEachChildElementPipe name="CallDetectRolChanges"
elementXPathExpression="/roles/role"
<ForEachChildElementPipe
name="CallDetectRolChangesDelete"
elementXPathExpression="/roles/role[gerelateerde/@verwerkingssoort = 'V']"
storeResultInSessionKey="DetectRolChangesResults">
<IbisLocalSender
name="CallDetectRolChangesDeleteSender"
javaListener="DetectRolChanges"
returnedSessionKeys="Error">
<Param name="ZdsWasZaakRol" sessionKey="ZdsWasZaakRol" type="DOMDOC"/>
<Param name="ZgwZaakUrl" sessionKey="ZgwZaakUrl"/>
<Param name="ZaakTypeUrl" xpathExpression="$GetZgwZaaktypeByUrlResult/ZgwZaakType/url">
<Param name="GetZgwZaaktypeByUrlResult" sessionKey="GetZgwZaaktypeByUrlResult" type="DOMDOC"/>
</Param>
<Param name="ZaakType" sessionKey="GetZgwZaaktypeByUrlResult" xpathExpression="//ZgwZaakType/identificatie" />
</IbisLocalSender>
<Forward name="success" path="CallDetectRolChanges"/>
<Forward name="exception" path="EXCEPTION" />
</ForEachChildElementPipe>

<ForEachChildElementPipe
name="CallDetectRolChanges"
getInputFromSessionKey="ZdsWordtZaakRol"
elementXPathExpression="/roles/role[gerelateerde/@verwerkingssoort != 'V']"
storeResultInSessionKey="DetectRolChangesResults">
<IbisLocalSender
name="CallDetectRolChangesSender"
Expand All @@ -236,7 +257,7 @@
</IbisLocalSender>
<Forward name="success" path="WrapZdsWordtZaak"/>
<Forward name="exception" path="EXCEPTION" />
</ForEachChildElementPipe>
</ForEachChildElementPipe>

<XsltPipe
name="WrapZdsWordtZaak"
Expand Down

0 comments on commit 34ff319

Please sign in to comment.