Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. Pacs004SDD
  2.  
  3. input -> pipe -> functionality and extras
  4.  
  5. In: path naar xmlFile
  6. - path naar xmlFile -> ReadFile -> reads provided path file and (saves to xmlFile)
  7. - xmlFile -> FileName -> extracts filename and extension from path (saves to FileName and preserves input)
  8. - xmlFile -> GetTotalInHeader -> Extracts total amount from message saves to TotalHeader
  9. - xmlFile -> FilterOfsPacs004SDD -> Checks all <TxInf> if <OrgnlEndToEndId> contains 2 dashes then copy else dont (saves to FileOfs)
  10. - 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)
  11. - FileOfs -> GetTotalInHeaderOFS -> Extracts total amount from header <TtlRtrdIntrBkSttlmAmt> (saves to TotalHeaderOFS and preserves input)
  12. - FileOfs -> FilterRestPacs004SDD -> Checks all <TxInf> if <OrgnlEndToEndId> contains 2 dashes then DO NOT copy else do (saves to FileRest)
  13. - FileRest -> SumHeaderPacs004SDD2 -> Extracts total amount from message (saves to TotalHeaderRest and preserves input)
  14. - FileRest -> CheckTotals -> Receives TotalHeaderRest & TotalHeaderOFS & TotalHeader, sums TotalHeaderRest & TotalHeaderOFS and if equal to TotalHeader then its ok else not ok
  15. - OK -> CheckTotals2 -> Validates result of CheckTolals throw error if not ok else CheckForFilterSkip (Saves to OK, preserves input)
  16. - 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
  17. - FileOfs -> WriteOfs -> First validates the input, writes file out to out folder with same fileName as stored in fileName
  18. - FileOfs -> WriteOfsForInvestigationalPurposes -> First validates the input, writes file out to out/archive folder with same fileName as stored in fileName
  19. - xmlFile -> CreateCommandOfs -> Takes FileName, EpOrOfs and Environment to create a command which is calling some tibco stuff
  20. - xmlFile -> StartMftOfs -> Saves commando to messageLog :)
  21. - xmlFile -> CreateMessageLogOfs -> Creates a message that the file has been sent to OFS + fileName
  22. - previous msg -> MessageLogOfs -> Saves message to messageLog
  23. - 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
  24.  
  25. scenarios
  26. happy flow met CheckForFilterSkip = WriteOfs && CheckForFilterSkip2 = SKIP
  27. happy flow met CheckForFilterSkip = WriteOfs && CheckForFilterSkip2 = WriteRest
  28. happy flow met CheckForFilterSkip = SKIP && CheckForFilterSkip2 = WriteRest
  29. sad flow met CheckTotals = notok
  30.  
  31. puntjes aangepast
  32. - Pacs004/SDD/FileOfs.xls -> unused variable OrgnlMsgId eruit gehaald
  33. - GetTotalInHeaderOFS -> preserveInput attribute weg gehaald omdat de volgende pipe getInputFromSessionKey doet
  34. - Pacs004/SDD/FileRest.xls -> unused variable OrgnlMsgId eruit gehaald
  35.  
  36. gekke puntjes
  37. - Pacs004/SDD/xsl/FindPacs.xsl && CheckForFilterSkip && CheckForFilterSkip2 -> XSL geeft 3 mogelijke forwards terug terwijl er maar 2 zijn gedefinierd
  38. - 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