Skip to content

Commit

Permalink
refactor: always end batch when adding documents to case regardless o…
Browse files Browse the repository at this point in the history
…f success or failure
  • Loading branch information
MLenterman committed Jul 5, 2024
1 parent d2903a2 commit f43666c
Showing 1 changed file with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,16 @@
<Param name="BatchNumber" sessionKey="StartBatchResponseMessage" xpathExpression="//batchNumber" />
</MessageStoreSender> -->
<Forward name="success" path="CreateEndBatchMessage" />
<Forward name="exception" path="StoreExceptionContext" />
</ForEachChildElementPipe>

<PutInSessionPipe
name="StoreExceptionContext"
>
<Param name="ExceptionContext" />
<Forward name="success" path="CreateEndBatchMessage" />
</PutInSessionPipe>

<XsltPipe
name="CreateEndBatchMessage"
getInputFromFixedValue="&lt;dummy/&gt;"
Expand All @@ -113,9 +121,24 @@
>
<Param name="soapAction" value="documents:endBatch" />
</IbisLocalSender>
<Forward name="success" path="EXIT" />
<Forward name="success" path="AddDocumentsToCase_Condition" />
</SenderPipe>

<XmlIfPipe
name="AddDocumentsToCase_Condition"
getInputFromFixedValue="&lt;dummy/&gt;"
xpathExpression="string-length($ExceptionContext) gt 0"
>
<Param name="ExceptionContext" sessionKey="ExceptionContext" />
<Forward name="then" path="AddDocumentsToCase_Exception" />
<Forward name="else" path="EXIT" />
</XmlIfPipe>

<ExceptionPipe
name="AddDocumentsToCase_Exception"
getInputFromSessionKey="ExceptionContext"
/>

</Pipeline>
</Adapter>
</Module>

0 comments on commit f43666c

Please sign in to comment.