Skip to content

Commit

Permalink
refactor: add relationID to CreateMetaDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
DelanoWAF committed Jul 5, 2023
1 parent 7df74ea commit f163e0b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,13 @@

<XmlIfPipe name="CheckForVertrouwelijkheid" xpathExpression="count(//rowset/row) > 0">
<Param name="Vertrouwelijkheid" sessionKey="Vertrouwelijkheid"/>
<Forward name="then" path="GetVertrouwelijkheid" />
<Forward name="then" path="GetRegistratienummer" />
<Forward name="else" path="EXCEPTION" />
</XmlIfPipe>


<XsltPipe name="GetRegistratienummer" xpathExpression="//rowset//field[@name='REGISTRATIENUMMER']" />
<PutInSessionPipe name="SetKeyRegistratienummer" sessionKey="Registratienummer"/>

<XsltPipe name="GetVertrouwelijkheid" xpathExpression="//rowset//field[@name='VERTROUWELIJKHEID']" />
<PutInSessionPipe name="SetKeyVertrouwelijkheid" sessionKey="Vertrouwelijkheid"/>

Expand All @@ -430,6 +433,7 @@
<Param name="Vertrouwelijkheid" sessionKey="Vertrouwelijkheid"/>
<Param name="Afzender" sessionKey="Afzender"/>
<Param name="Onderwerp" sessionKey="Onderwerp"/>
<Param name="Registratienummer" sessionKey="Registratienummer"/>
<Forward name="success" path="WrapCreateMetaDocumentBijlageRequest" />
<Forward name="exception" path="EXCEPTION" />
</XsltPipe>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<xsl:param name="Vertrouwelijkheid" />
<xsl:param name="Afzender" />
<xsl:param name="Onderwerp" />
<xsl:param name="Registratienummer" />

<xsl:template match="/">
<bct:CreateMetaDocument xmlns:bct="http://bct.nl">
<!--Optional:-->
Expand Down Expand Up @@ -74,6 +76,13 @@
<xsl:value-of select="$Vertrouwelijkheid" />
</bct:Value>
</bct:NameValue>
<bct:NameValue>
<bct:Name>poststuk.relatie_id</bct:Name>
<bct:Value>
<xsl:value-of select="$Registratienummer" />
</bct:Value>
</bct:NameValue>

</bct:FieldValues>
<!--Optional:-->
<bct:ReferenceValues>
Expand Down

0 comments on commit f163e0b

Please sign in to comment.