Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "settings": {
- "enableTrace": "true"
- },
- "mappingRules": [
- {
- "name": "COLLATERALToCollaterals",
- "description": "COLLATERALToCollaterals",
- "condition": null,
- "sequence": 1,
- "mappings": [
- {
- "toProperty": "collateralId",
- "transformations": [
- {
- "type": "CollateralId",
- "parameters": [
- {
- "type": "Map",
- "fromProperty": "REPORTINGDATE"
- },
- {
- "type": "Trim",
- "parameter": {
- "type": "Map",
- "fromProperty": "ID_JAMINAN"
- }
- }
- ]
- }
- ]
- },
- {
- "toProperty": "originCollateralId",
- "transformations": [
- {
- "type": "Map",
- "fromProperty": "ID_JAMINAN"
- }
- ]
- },
- {
- "toProperty": "originSystemId",
- "transformations": [
- {
- "type": "Map",
- "fromProperty": "FLAG"
- }
- ]
- },
- {
- "toProperty": "reportingDate",
- "transformations": [
- {
- "type": "DateConversion",
- "fromFormat": "yyyyMMdd",
- "toFormat": "yyyy-MM-dd",
- "parameter": {
- "type": "Map",
- "fromProperty": "REPORTINGDATE"
- }
- }
- ]
- },
- {
- "toProperty": "currency",
- "transformations": [
- {
- "type": "Map",
- "fromProperty": "KD_VALUTA"
- }
- ]
- },
- {
- "toProperty": "collateralType",
- "transformations": [
- {
- "type": "Map",
- "fromProperty": "COLLATERAL_TYPE"
- }
- ]
- },
- {
- "toProperty": "collateralAmount",
- "transformations": [
- {
- "type": "Map",
- "fromProperty": "JML_NILAI_AGUNAN"
- }
- ]
- },
- {
- "toProperty": "appraisalDate",
- "transformations": [
- {
- "type": "DateConversion",
- "fromFormat": "yyyyMMdd",
- "toFormat": "yyyy-MM-dd",
- "parameter": {
- "type": "Map",
- "fromProperty": "TGL_PENILAIAN"
- }
- }
- ]
- },
- {
- "toProperty": "collateralLinks",
- "transformations": [
- {
- "type": "Array",
- "fromProperty": "CONTRACTS",
- "array": [
- {
- "toProperty": "contractId",
- "transformations": [
- {
- "type": "ContractId",
- "parameters": [
- {
- "type": "Map",
- "fromProperty": "parent.REPORTINGDATE"
- },
- {
- "type": "Map",
- "fromProperty": "ID_NASABAH"
- },
- {
- "type": "Map",
- "fromProperty": "NO_REK"
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "toProperty": "CollateralTypeProperty",
- "transformations": [
- {
- "type": "Map",
- "fromProperty": "TYPE_PROPERTY"
- }
- ]
- },
- {
- "toProperty": "CollateralMaturityDate",
- "transformations": [
- {
- "type": "DateConversion",
- "fromFormat": "yyyyMMdd",
- "toFormat": "yyyy-MM-dd",
- "parameter": {
- "type": "Map",
- "fromProperty": "TGL_JTEMPO"
- }
- }
- ]
- },
- {
- "toProperty": "CollateralTypePropertyTranslated",
- "transformations": [
- {
- "type": "If",
- "expression": "TYPE_PROPERTY = '006' || TYPE_PROPERTY = '004' || TYPE_PROPERTY = '001'",
- "whenTrue": {
- "type": "FixedValue",
- "fromValue": "RRE-NOT-CF-DEPENDENT"
- },
- "whenFalse": {
- "type": "If",
- "expression": "TYPE_PROPERTY = '005'",
- "whenTrue": {
- "type": "FixedValue",
- "fromValue": "RRE-CF-DEPENDENT"
- },
- "whenFalse": {
- "type": "If",
- "expression": "TYPE_PROPERTY = '099' || TYPE_PROPERTY = '011' || TYPE_PROPERTY = '014' || TYPE_PROPERTY = '010'",
- "whenTrue": {
- "type": "FixedValue",
- "fromValue": "CRE-NOT-CF-DEPENDENT"
- },
- "whenFalse": {
- "type": "If",
- "expression": "TYPE_PROPERTY = '009' || TYPE_PROPERTY = '012' || TYPE_PROPERTY = '007' || TYPE_PROPERTY = '003' || TYPE_PROPERTY = '002' || TYPE_PROPERTY = '016' || TYPE_PROPERTY = '008'",
- "whenTrue": {
- "type": "FixedValue",
- "fromValue": "CRE-CF-DEPENDENT"
- },
- "whenFalse": {
- "type": "FixedValue",
- "fromValue": "UNDEFINED"
- }
- }
- }
- }
- }
- ]
- }
- ]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement