Skip to content

Commit

Permalink
Revert "refactor: remove unnecessary forwards from ToMorcore"
Browse files Browse the repository at this point in the history
This reverts commit feae509.
  • Loading branch information
DelanoWAF committed Aug 8, 2024
1 parent 2bebcaa commit fc6b69f
Showing 1 changed file with 26 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

<SenderPipe name="CallMorCore_GetToken" storeResultInSessionKey="MorCoreToken">
<IbisLocalSender name="CallMorCore_GetToken" javaListener="MorCore_GetToken" />
<Forward name="success" path="Send2MorCore" />
<Forward name="exception" path="Exception" />
</SenderPipe>

<SenderPipe name="Send2MorCore" getInputFromSessionKey="originalMessage" emptyInputReplacement="&lt;NoInput/>">
Expand All @@ -30,11 +32,19 @@

<SenderPipe name="CallMSBSender">
<IbisLocalSender name="CallMSBSender" javaListener="MSB_GetMelding" />
<Forward name="success" path="Json2Xml" />
<Forward name="exception" path="Exception" />
</SenderPipe>

<JsonPipe name="Json2Xml" prettyPrint="true"/>
<JsonPipe name="Json2Xml" prettyPrint="true">
<Forward name="success" path="Xml2Json" />
<Forward name="exception" path="Exception" />
</JsonPipe>

<JsonPipe name="Xml2Json" direction="XML2JSON"/>
<JsonPipe name="Xml2Json" direction="XML2JSON">
<Forward name="success" path="Exit" />
<Forward name="exception" path="Exception" />
</JsonPipe>

</Pipeline>
</Adapter>
Expand All @@ -54,6 +64,8 @@

<SenderPipe name="CallMorCore_GetToken" storeResultInSessionKey="MorCoreToken">
<IbisLocalSender name="CallMorCore_GetToken" javaListener="MorCore_GetToken" />
<Forward name="success" path="Send2MorCore" />
<Forward name="exception" path="Exception" />
</SenderPipe>

<SenderPipe name="Send2MorCore" getInputFromSessionKey="originalMessage" emptyInputReplacement="&lt;NoInput/>">
Expand All @@ -68,13 +80,20 @@

<SenderPipe name="CallMSBSender">
<IbisLocalSender name="CallMSBSender" javaListener="MSB_GetMelding" />
<Forward name="success" path="Json2Xml" />
<Forward name="exception" path="Exception" />
</SenderPipe>

<JsonPipe name="Json2Xml" prettyPrint="true"/>
<JsonPipe name="Json2Xml" prettyPrint="true">
<Forward name="success" path="CorrectFormat" />
<Forward name="exception" path="Exception" />
</JsonPipe>

<XsltPipe name="CorrectFormat" styleSheetName="xsl/TaakApi/CorrectGetTaakOpdrachtResponse.xsl"
outputType="XML">
<Param name="MorCoreRootUrl" value="${MorCore.taak.API.root-url}" />
<Forward name="success" path="XmlCheck" />
<Forward name="exception" path="Exception" />
</XsltPipe>

<XmlValidatorPipe name="XmlCheck" schema="xsd/TaakApi/ValidateGetMeldingTaak.xsd"
Expand All @@ -83,7 +102,10 @@
<Forward name="failure" path="Reject" />
</XmlValidatorPipe>

<JsonPipe name="Xml2Json" direction="XML2JSON"/>
<JsonPipe name="Xml2Json" direction="XML2JSON">
<Forward name="success" path="Exit" />
<Forward name="exception" path="Exception" />
</JsonPipe>

</Pipeline>
</Adapter>
Expand Down

0 comments on commit fc6b69f

Please sign in to comment.