Advertisement
ariswb22

[CKV] General-Ledger transformations

Mar 10th, 2022
1,053
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 12.67 KB | None | 0 0
  1. {
  2.   "enableTrace": false,
  3.   "mappingRules": [
  4.     {
  5.       "ruleId": "23e15c5d-e8b6-4c0d-bde2-b855460ba3c9",
  6.       "name": "Rules",
  7.       "description": "",
  8.       "condition": null,
  9.       "priority": 1,
  10.       "mappings": [
  11.         {
  12.           "toProperty": "ContractId",
  13.           "transformations": [
  14.             {
  15.               "type": "ContractId",
  16.               "parameters": [
  17.                 {
  18.                   "type": "Map",
  19.                   "fromProperty": "VALID_ON"
  20.                 },
  21.                 {
  22.                   "type": "Trim",
  23.                   "comment": "Removes all leading and trailing white-space characters.",
  24.                   "parameter": {
  25.                     "type": "Map",
  26.                     "fromProperty": "IDE_GL_REF"
  27.                   }
  28.                 }
  29.               ]
  30.             }
  31.           ]
  32.         },
  33.         {
  34.           "toProperty": "CounterpartyId",
  35.           "transformations": [
  36.             {
  37.               "type": "CounterpartyId",
  38.               "parameters": [
  39.                 {
  40.                   "type": "Map",
  41.                   "fromProperty": "VALID_ON"
  42.                 },
  43.                 {
  44.                   "type": "Trim",
  45.                   "comment": "Removes all leading and trailing white-space characters.",
  46.                   "parameter": {
  47.                     "type": "Map",
  48.                     "fromProperty": "IDE_COUNTERPARTY_REF"
  49.                   }
  50.                 }
  51.               ]
  52.             }
  53.           ]
  54.         },
  55.         {
  56.           "toProperty": "ReportingDate",
  57.           "transformations": [
  58.             {
  59.               "type": "DateConversion",
  60.               "fromFormat": "yyyyMMdd",
  61.               "toFormat": "yyyy-MM-dd",
  62.               "parameter": {
  63.                 "type": "Map",
  64.                 "fromProperty": "VALID_ON",
  65.                 "comment": ""
  66.               }
  67.             }
  68.           ]
  69.         },
  70.         {
  71.           "toProperty": "Entity",
  72.           "transformations": [
  73.             {
  74.               "type": "Map",
  75.               "fromProperty": "IDE_INTERNAL_PARTY_REF",
  76.               "comment": ""
  77.             }
  78.           ]
  79.         },
  80.         {
  81.           "toProperty": "AsLb",
  82.           "transformations": [
  83.             {
  84.               "type": "Map",
  85.               "fromProperty": "TYP_AL_INDICATOR",
  86.               "comment": ""
  87.             }
  88.           ]
  89.         },
  90.         {
  91.           "toProperty": "OriginContractId",
  92.           "transformations": [
  93.             {
  94.               "type": "Trim",
  95.               "comment": "Removes all leading and trailing white-space characters.",
  96.               "parameter": {
  97.                 "type": "Map",
  98.                 "fromProperty": "IDE_GL_REF"
  99.               }
  100.             }
  101.           ]
  102.         },
  103.         {
  104.           "toProperty": "OriginSystemId",
  105.           "transformations": [
  106.             {
  107.               "type": "FixedValue",
  108.               "fromValue": "GDM_GENERAL_LEDGER",
  109.               "comment": "Apply fixed value to GDM_GENERAL_LEDGER"
  110.             }
  111.           ]
  112.         },
  113.         {
  114.           "toProperty": "ProductType",
  115.           "transformations": [
  116.             {
  117.               "type": "Map",
  118.               "fromProperty": "PRD_PRODUCT",
  119.               "comment": ""
  120.             }
  121.           ]
  122.         },
  123.         {
  124.           "toProperty": "ProductSubtype",
  125.           "transformations": [
  126.             {
  127.               "type": "Map",
  128.               "fromProperty": "IDE_GL_REF",
  129.               "comment": ""
  130.             }
  131.           ]
  132.         },
  133.         {
  134.           "toProperty": "BusinessUnit",
  135.           "transformations": [
  136.             {
  137.               "type": "Null",
  138.               "comment": ""
  139.             }
  140.           ]
  141.         },
  142.         {
  143.           "toProperty": "OriginCounterpartyId",
  144.           "transformations": [
  145.             {
  146.               "type": "Trim",
  147.               "comment": "Removes all leading and trailing white-space characters.",
  148.               "parameter": {
  149.                 "type": "Map",
  150.                 "fromProperty": "IDE_COUNTERPARTY_REF"
  151.               }
  152.             }
  153.           ]
  154.         },
  155.         {
  156.           "toProperty": "BaseLgd",
  157.           "transformations": [
  158.             {
  159.               "type": "Null",
  160.               "comment": ""
  161.             }
  162.           ]
  163.         },
  164.         {
  165.           "toProperty": "BasePd",
  166.           "transformations": [
  167.             {
  168.               "type": "Null",
  169.               "comment": ""
  170.             }
  171.           ]
  172.         },
  173.         {
  174.           "toProperty": "CreditRating",
  175.           "transformations": [
  176.             {
  177.               "type": "Null",
  178.               "comment": ""
  179.             }
  180.           ]
  181.         },
  182.         {
  183.           "toProperty": "CreditRatingAgency",
  184.           "transformations": [
  185.             {
  186.               "type": "Null",
  187.               "comment": ""
  188.             }
  189.           ]
  190.         },
  191.         {
  192.           "toProperty": "Collectibility",
  193.           "transformations": [
  194.             {
  195.               "type": "Null",
  196.               "comment": ""
  197.             }
  198.           ]
  199.         },
  200.         {
  201.           "toProperty": "IsRestructured",
  202.           "transformations": [
  203.             {
  204.               "type": "Map",
  205.               "fromProperty": "TYP_RESTRUCTURED",
  206.               "comment": ""
  207.             }
  208.           ]
  209.         },
  210.         {
  211.           "toProperty": "Currency",
  212.           "transformations": [
  213.             {
  214.               "type": "Map",
  215.               "fromProperty": "CCY_ISO_CURRENCY",
  216.               "comment": ""
  217.             }
  218.           ]
  219.         },
  220.         {
  221.           "toProperty": "CurrentPd",
  222.           "transformations": [
  223.             {
  224.               "type": "Null",
  225.               "comment": ""
  226.             }
  227.           ]
  228.         },
  229.         {
  230.           "toProperty": "DaysPastDue",
  231.           "transformations": [
  232.             {
  233.               "type": "Null",
  234.               "comment": ""
  235.             }
  236.           ]
  237.         },
  238.         {
  239.           "toProperty": "DiscountRate",
  240.           "transformations": [
  241.             {
  242.               "type": "Null",
  243.               "comment": ""
  244.             }
  245.           ]
  246.         },
  247.         {
  248.           "toProperty": "EffectiveInterestRate",
  249.           "transformations": [
  250.             {
  251.               "type": "Null",
  252.               "comment": ""
  253.             }
  254.           ]
  255.         },
  256.         {
  257.           "toProperty": "EffectiveInterestRateIncludingFeesAndCosts",
  258.           "transformations": [
  259.             {
  260.               "type": "Null",
  261.               "comment": ""
  262.             }
  263.           ]
  264.         },
  265.         {
  266.           "toProperty": "Segment",
  267.           "transformations": [
  268.             {
  269.               "type": "Null",
  270.               "comment": ""
  271.             }
  272.           ]
  273.         },
  274.         {
  275.           "toProperty": "IsSecured",
  276.           "transformations": [
  277.             {
  278.               "type": "FixedValue",
  279.               "fromValue": "true",
  280.               "comment": ""
  281.             }
  282.           ]
  283.         },
  284.         {
  285.           "toProperty": "InitialPd",
  286.           "transformations": [
  287.             {
  288.               "type": "Null",
  289.               "comment": ""
  290.             }
  291.           ]
  292.         },
  293.         {
  294.           "toProperty": "InterestRate",
  295.           "transformations": [
  296.             {
  297.               "type": "Null",
  298.               "comment": ""
  299.             }
  300.           ]
  301.         },
  302.         {
  303.           "toProperty": "InterestSpread",
  304.           "transformations": [
  305.             {
  306.               "type": "Null",
  307.               "comment": ""
  308.             }
  309.           ]
  310.         },
  311.         {
  312.           "toProperty": "InterestCurve",
  313.           "transformations": [
  314.             {
  315.               "type": "Null",
  316.               "comment": ""
  317.             }
  318.           ]
  319.         },
  320.         {
  321.           "toProperty": "StartDate",
  322.           "transformations": [
  323.             {
  324.               "type": "Coalesce",
  325.               "parameters": [
  326.                 {
  327.                   "type": "Map",
  328.                   "fromProperty": "DTE_DEAL",
  329.                   "comment": ""
  330.                 },
  331.                 {
  332.                   "type": "DateConversion",
  333.                   "fromFormat": "yyyyMMdd",
  334.                   "toFormat": "yyyy-MM-dd",
  335.                   "parameter": {
  336.                     "type": "Map",
  337.                     "fromProperty": "VALID_ON",
  338.                     "comment": ""
  339.                   }
  340.                 }
  341.               ]
  342.             }
  343.           ]
  344.         },
  345.         {
  346.           "toProperty": "MaturityDate",
  347.           "transformations": [
  348.             {
  349.               "type": "Coalesce",
  350.               "parameters": [
  351.                 {
  352.                   "type": "Map",
  353.                   "fromProperty": "DTE_MATURITY",
  354.                   "comment": ""
  355.                 },
  356.                 {
  357.                   "type": "DateConversion",
  358.                   "fromFormat": "yyyyMMdd",
  359.                   "toFormat": "yyyy-MM-dd",
  360.                   "parameter": {
  361.                     "type": "Map",
  362.                     "fromProperty": "VALID_ON",
  363.                     "comment": ""
  364.                   }
  365.                 }
  366.               ]
  367.             }
  368.           ]
  369.         },
  370.         {
  371.           "toProperty": "PrincipalAmount",
  372.           "transformations": [
  373.             {
  374.               "type": "Coalesce",
  375.               "parameters": [
  376.                 {
  377.                   "type": "Map",
  378.                   "fromProperty": "RCA_AMOUNT",
  379.                   "comment": ""
  380.                 },
  381.                 {
  382.                   "type": "FixedValue",
  383.                   "fromValue": "0",
  384.                   "comment": "Apply zero value."
  385.                 }
  386.               ]
  387.             }
  388.           ]
  389.         },
  390.         {
  391.           "toProperty": "OutstandingAmount",
  392.           "transformations": [
  393.             {
  394.               "type": "Coalesce",
  395.               "parameters": [
  396.                 {
  397.                   "type": "Map",
  398.                   "fromProperty": "RCA_AMOUNT",
  399.                   "comment": ""
  400.                 },
  401.                 {
  402.                   "type": "FixedValue",
  403.                   "fromValue": "0",
  404.                   "comment": "Apply zero value."
  405.                 }
  406.               ]
  407.             }
  408.           ]
  409.         },
  410.         {
  411.           "toProperty": "LimitAmount",
  412.           "transformations": [
  413.             {
  414.               "type": "Null",
  415.               "comment": ""
  416.             }
  417.           ]
  418.         },
  419.         {
  420.           "toProperty": "UndrawnAmount",
  421.           "transformations": [
  422.             {
  423.               "type": "Null",
  424.               "comment": ""
  425.             }
  426.           ]
  427.         },
  428.         {
  429.           "toProperty": "AccruedInterest",
  430.           "transformations": [
  431.             {
  432.               "type": "Null",
  433.               "comment": ""
  434.             }
  435.           ]
  436.         },
  437.         {
  438.           "toProperty": "PenaltyInterest",
  439.           "transformations": [
  440.             {
  441.               "type": "Null",
  442.               "comment": ""
  443.             }
  444.           ]
  445.         },
  446.         {
  447.           "toProperty": "PresentValue",
  448.           "transformations": [
  449.             {
  450.               "type": "Null",
  451.               "comment": ""
  452.             }
  453.           ]
  454.         },
  455.         {
  456.           "toProperty": "PresentValueIncludingFeesAndCosts",
  457.           "transformations": [
  458.             {
  459.               "type": "Null",
  460.               "comment": ""
  461.             }
  462.           ]
  463.         },
  464.         {
  465.           "toProperty": "ProductCode",
  466.           "transformations": [
  467.             {
  468.               "type": "Map",
  469.               "fromProperty": "PRD_PRODUCT",
  470.               "comment": ""
  471.             }
  472.           ]
  473.         },
  474.         {
  475.           "toProperty": "ContractRef",
  476.           "transformations": [
  477.             {
  478.               "type": "Map",
  479.               "fromProperty": "IDE_CONTRACT_REF",
  480.               "comment": ""
  481.             }
  482.           ]
  483.         },
  484.         {
  485.           "toProperty": "AssetLiabIndicator",
  486.           "transformations": [
  487.             {
  488.               "type": "Map",
  489.               "fromProperty": "TYP_AL_INDICATOR",
  490.               "comment": ""
  491.             }
  492.           ]
  493.         },
  494.         {
  495.           "toProperty": "GlCode",
  496.           "transformations": [
  497.             {
  498.               "type": "Map",
  499.               "fromProperty": "IDE_GL_REF",
  500.               "comment": ""
  501.             }
  502.           ]
  503.         },
  504.         {
  505.           "toProperty": "GlDescription",
  506.           "transformations": [
  507.             {
  508.               "type": "Map",
  509.               "fromProperty": "AUDIT_INFO",
  510.               "comment": ""
  511.             }
  512.           ]
  513.         }
  514.       ]
  515.     }
  516.   ]
  517. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement