Advertisement
ariswb22

Counterparties-Streams

Oct 25th, 2021
1,005
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.27 KB | None | 0 0
  1. {
  2.     "settings": {
  3.         "enableTrace": false
  4.     },
  5.     "mappingRules": [
  6.         {
  7.             "name": "Counterparty stream",
  8.             "description": "Counterparty stream",
  9.             "condition": null,
  10.             "sequence": 1,
  11.             "mappings": [
  12.                 {
  13.                     "toProperty": "counterpartyId",
  14.                     "transformations": [
  15.                         {
  16.                             "type": "CounterpartyId",
  17.                             "parameters": [
  18.                                 {
  19.                                     "type": "Map",
  20.                                     "fromProperty": "VALID_ON"
  21.                                 },
  22.                                 {
  23.                                     "type": "Trim",
  24.                                     "comment": "Removes all leading and trailing white-space characters.",
  25.                                     "parameter": {
  26.                                         "type": "Map",
  27.                                         "fromProperty": "IDE_COUNTERPARTY_REF"
  28.                                     }
  29.                                 }
  30.                             ]
  31.                         }
  32.                     ]
  33.                 },
  34.                 {
  35.                     "toProperty": "reportingDate",
  36.                     "transformations": [
  37.                         {
  38.                             "type": "DateConversion",
  39.                             "fromFormat": "yyyyMMdd",
  40.                             "toFormat": "yyyy-MM-dd",
  41.                             "parameter": {
  42.                                 "type": "Map",
  43.                                 "fromProperty": "VALID_ON",
  44.                                 "comment": ""
  45.                             }
  46.                         }
  47.                     ]
  48.                 },
  49.                 {
  50.                     "toProperty": "name",
  51.                     "transformations": [
  52.                         {
  53.                             "type": "Map",
  54.                             "fromProperty": "DES_LONGNAME",
  55.                             "comment": ""
  56.                         }
  57.                     ]
  58.                 },
  59.                 {
  60.                     "toProperty": "originCounterpartyId",
  61.                     "transformations": [
  62.                         {
  63.                             "type": "Trim",
  64.                             "comment": "Removes all leading and trailing white-space characters.",
  65.                             "parameter": {
  66.                                 "type": "Map",
  67.                                 "fromProperty": "IDE_COUNTERPARTY_REF"
  68.                             }
  69.                         }
  70.                     ]
  71.                 },
  72.                 {
  73.                     "toProperty": "originSystemId",
  74.                     "transformations": [
  75.                         {
  76.                             "type": "FixedValue",
  77.                             "comment": "Apply fixed value to GDM_SECURITY",
  78.                             "fromValue": "GDM_COUNTERPARTY"
  79.                         }
  80.                     ]
  81.                 },
  82.                 {
  83.                     "toProperty": "counterpartyType",
  84.                     "transformations": [
  85.                         {
  86.                             "type": "Map",
  87.                             "fromProperty": "TYP_CPTY_TYPE",
  88.                             "comment": ""
  89.                         }
  90.                     ]
  91.                 },
  92.                 {
  93.                     "toProperty": "enterpriseSize",
  94.                     "transformations": [
  95.                         {
  96.                             "type": "Map",
  97.                             "fromProperty": "TYP_ENTERPRISE_SIZE",
  98.                             "comment": ""
  99.                         }
  100.                     ]
  101.                 },
  102.                 {
  103.                     "toProperty": "businessUnit",
  104.                     "transformations": [
  105.                         {
  106.                             "type": "Null",
  107.                             "comment": ""
  108.                         }
  109.                     ]
  110.                 }
  111.             ]
  112.         }
  113.     ]
  114. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement