Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 KB | None | 0 0
  1. Pacs004SCT
  2.  
  3. input -> pipe -> functionality and extras
  4.  
  5. In: path naar xmlFile
  6. - path naar xmlFile -> ReadXmlFile -> 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 and preserves input)
  9. - xmlFile -> Get Unique IBAN Numbers -> Extracts all unique iban numbers found within <OrgnlTxRef>/<DbtrAcct>/<Id>/<IBAN> and creates a <root>/<iban>[]
  10. - ibanXml -> GetPartiesOnAgreement Iterator -> Iterates over all unique IBAN numbers in <root>/<iban> and sends the iban to GetPartiesOnAgreement_local_Receiver (saves to ibanResults)
  11. - ibanResults -> Rearrange IBAN Results -> Transform the result of GetPartiesOnAgreement and sorts IBAN's to OFS or EUROPORT (saves to ibanResults)
  12. - xmlFile, ibanResults -> FilterOfsPacs004 -> Filters out all <TxInf> elements where the iban is found in ibanResults <results>/<ofs>, copies element when found, doesnt when not (saves to FileOfs)
  13. - FileOfs -> SumHeaderPacs0042 -> updates <NbOfTxs> with count of <TxInf> and when <TtlRtrdIntrBkSttlmAmt> is present, it sums <RtrdIntrBkSttlmAmt> to a number format the number to two decimals (saves to FileOfs)
  14. - FileOfs -> GetTotalInHeaderOFS -> Extracts the value set to <TtlRtrdIntrBkSttlmAmt> (Saves to TotalHeaderOFS and preserves input)
  15. - xmlFile, ibanResults -> FilterRestPacs004 -> Filters out all <TxInf> elements where the iban is NOT found in ibanResults <results>/<ofs>, copies element when not found, doesnt when found (saves to FileRest)
  16. - FileRest -> SumHeaderPacs0043 -> updates <NbOfTxs> with count of <TxInf> and when <TtlRtrdIntrBkSttlmAmt> is present, it sums <RtrdIntrBkSttlmAmt> to a number format the number to two decimals (saves to FileRest)
  17. - FileRest -> GetTotalInHeaderRest -> Extracts total amount from message (saves to TotalHeaderRest and preserves input)
  18. - FileRest -> CheckTotals -> Receives TotalHeaderRest & TotalHeaderOFS & TotalHeader, sums TotalHeaderRest & TotalHeaderOFS and if equal to TotalHeader then its ok else not ok (saves to ok and preserves input)
  19. - OK -> CheckTotals2 -> Actually checks the result of CheckTotals , if ok checkforfilterskip else not ok (preserves input)
  20. - FileOfs -> CheckForFilterSkip -> Counts <TxInf> (pacs004) and <CdtTrfTxInf> (pacs008), when pacs008 > 0 then return pacs008 ( no forward for this, probably not possible to get here ), when pacs004 > 0 then return pacs004 else return skip
  21.  
  22. 2 OPTIONS
  23.  
  24. 2 - pacs004
  25. - FileName -> WriteOfs -> Writes FileName to mft out
  26. - FileName -> WriteOfsForInvestigationalPurposes -> First validates the input, writes file out to out/archive folder with same fileName as stored in fileName
  27. - xmlFile -> CreateCommandOfs -> Takes FileName, EpOrOfs and Environment to create a command which is calling some tibco stuff
  28. - command -> StartMftOfs -> saves commando to messageLog :)
  29. - xmlFile, FileName -> CreateMessageLogOfs -> Creates a message that is saying FileName has been sent to OFS
  30. - message -> MessageLogOfs -> Stores message to messageLog
  31. - goto flow 2
  32.  
  33. 2 - skip
  34. - FileRest -> CheckForFilterSkip2 -> Counts <TxInf> (pacs004) and <CdtTrfTxInf> (pacs008), when pacs008 > 0 then return pacs008 ( no forward for this, probably not possible to get here ), when pacs004 > 0 then return pacs004 else return skip (skip == exit)
  35. - FileName -> WriteRest -> Writes FileName to MFT out
  36. - xmlFile -> CreateCommandEp -> Takes FileName, EpOrOfs and Environment to create a command which is calling some tibco stuff
  37. - command -> StartMftEp -> Saves commando to messageLog :)
  38. - xmlFile, fileName -> CreateMessageLogEp -> Creates a message that is saying FileName has been sent to EUROPORT
  39. - message -> MessageLogEp -> Stores message to messageLog
  40.  
  41.  
  42. scenarios
  43. happy flow met CheckForFilterSkip = WriteOfs && CheckForFilterSkip2 = SKIP
  44. happy flow met CheckForFilterSkip = WriteOfs && CheckForFilterSkip2 = WriteRest
  45. happy flow met CheckForFilterSkip = SKIP && CheckForFilterSkip2 = WriteRest
  46. sad flow met CheckTotals = notok
  47.  
  48. fixes?
  49. CreateCommandOfs
  50. CreateCommandEp
  51. CreateMessageLogEp
  52. CreateMessageLogOfs -> takes entire XML doc as input but is not using it, maybe use &lt;dummy/&gt;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement