Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pacs004SDD
- input -> pipe -> functionality and extras
- In: path naar xmlFile
- - path naar xmlFile -> ReadFile -> reads provided path file and (saves to xmlFile)
- - xmlFile -> FileName -> extracts filename and extension from path (saves to FileName and preserves input)
- - xmlFile -> GetTotalInHeader -> Extracts total amount from message saves to TotalHeader
- - xmlFile -> FilterOfsPacs004SDD -> Checks all <TxInf> if <OrgnlEndToEndId> contains 2 dashes then copy else dont (saves to FileOfs)
- - FileOfs -> SumHeaderPacs004SDD2 -> When <NbOfTxs> (holds count of <TxInf>) is present, update it with the new amount of <TxInf> and when <TtlRtrdIntrBkSttlmAmt> is present, it sums <RtrdIntrBkSttlmAmt> to a number format the number to two decimals (saves to FileOfs)
- - FileOfs -> GetTotalInHeaderOFS -> Extracts total amount from header <TtlRtrdIntrBkSttlmAmt> (saves to TotalHeaderOFS and preserves input)
- - FileOfs -> FilterRestPacs004SDD -> Checks all <TxInf> if <OrgnlEndToEndId> contains 2 dashes then DO NOT copy else do (saves to FileRest)
- - FileRest -> SumHeaderPacs004SDD2 -> Extracts total amount from message (saves to TotalHeaderRest and preserves input)
- - FileRest -> CheckTotals -> Receives TotalHeaderRest & TotalHeaderOFS & TotalHeader, sums TotalHeaderRest & TotalHeaderOFS and if equal to TotalHeader then its ok else not ok
- - OK -> CheckTotals2 -> Validates result of CheckTolals throw error if not ok else CheckForFilterSkip (Saves to OK, preserves input)
- - FileOfs -> CheckForFilterSkip -> Counts <TxInf> (pacs004) and <CdtTrfTxInf> (pacs007), when pacs007 > 0 then return Pacs007SDD ( no forward for this, probably not possible to get here ), when pacs004 > 0 then return Pacs004SDD else return skip
- - FileOfs -> WriteOfs -> First validates the input, writes file out to out folder with same fileName as stored in fileName
- - FileOfs -> WriteOfsForInvestigationalPurposes -> First validates the input, writes file out to out/archive folder with same fileName as stored in fileName
- - xmlFile -> CreateCommandOfs -> Takes FileName, EpOrOfs and Environment to create a command which is calling some tibco stuff
- - xmlFile -> StartMftOfs -> Saves commando to messageLog :)
- - xmlFile -> CreateMessageLogOfs -> Creates a message that the file has been sent to OFS + fileName
- - previous msg -> MessageLogOfs -> Saves message to messageLog
- - fileRest -> CheckForFilterSkip -> Counts <TxInf> (pacs004) and <CdtTrfTxInf> (pacs007), when pacs007 > 0 then return Pacs007SDD ( no forward for this, probably not possible to get here ), when pacs004 > 0 then return Pacs004SDD else return skip
- scenarios
- happy flow met CheckForFilterSkip = WriteOfs && CheckForFilterSkip2 = SKIP
- happy flow met CheckForFilterSkip = WriteOfs && CheckForFilterSkip2 = WriteRest
- happy flow met CheckForFilterSkip = SKIP && CheckForFilterSkip2 = WriteRest
- sad flow met CheckTotals = notok
- puntjes aangepast
- - Pacs004/SDD/FileOfs.xls -> unused variable OrgnlMsgId eruit gehaald
- - GetTotalInHeaderOFS -> preserveInput attribute weg gehaald omdat de volgende pipe getInputFromSessionKey doet
- - Pacs004/SDD/FileRest.xls -> unused variable OrgnlMsgId eruit gehaald
- gekke puntjes
- - Pacs004/SDD/xsl/FindPacs.xsl && CheckForFilterSkip && CheckForFilterSkip2 -> XSL geeft 3 mogelijke forwards terug terwijl er maar 2 zijn gedefinierd
- - Pacs004 CreateMessageLogOfs krijgt als input gehele xmlFile, misschien <dummy/> erin stoppen? ivm met lezen vanuit geheugen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement