Commit 4b93342f authored by Shaun Aston's avatar Shaun Aston

syncing with workspace from studio [potentially affected 6 entities]

parent cf072e0c
......@@ -310,7 +310,7 @@
} ]
},
"property" : {
"class" : "cdm::model::EquityPayout",
"class" : "cdm::model::ObservationPayout",
"property" : "underlier"
},
"sourceView" : "2a5106c9-475b-4d70-8afe-e11a6c4229fe",
......@@ -358,7 +358,7 @@
} ]
},
"property" : {
"class" : "cdm::model::EquityPayout",
"class" : "cdm::model::ObservationPayout",
"property" : "paymentDates"
},
"sourceView" : "2a5106c9-475b-4d70-8afe-e11a6c4229fe",
......
......@@ -14,50 +14,83 @@
"values" : [ "creditSupportAmountCalc" ]
}, {
"_type" : "func",
"function" : "toOne",
"function" : "if",
"parameters" : [ {
"_type" : "func",
"function" : "max",
"function" : "greaterThan",
"parameters" : [ {
"_type" : "collection",
"_type" : "func",
"function" : "minus",
"parameters" : [ {
"_type" : "collection",
"multiplicity" : {
"lowerBound" : 2,
"upperBound" : 2
},
"values" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "marginAmount"
} ],
"property" : "amount"
}, {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "threshold"
} ],
"property" : "amount"
} ]
} ]
}, {
"_type" : "integer",
"multiplicity" : {
"lowerBound" : 2,
"upperBound" : 2
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ {
"_type" : "func",
"function" : "minus",
"parameters" : [ {
"_type" : "collection",
"multiplicity" : {
"lowerBound" : 2,
"upperBound" : 2
},
"values" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "marginAmount"
} ],
"property" : "amount"
}, {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "threshold"
} ],
"property" : "amount"
} ]
} ]
}, {
"_type" : "float",
"values" : [ 0 ]
} ]
}, {
"_type" : "lambda",
"body" : [ {
"_type" : "func",
"function" : "minus",
"parameters" : [ {
"_type" : "collection",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
"lowerBound" : 2,
"upperBound" : 2
},
"values" : [ 0 ]
"values" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "marginAmount"
} ],
"property" : "amount"
}, {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "threshold"
} ],
"property" : "amount"
} ]
} ]
} ]
} ],
"parameters" : [ ]
}, {
"_type" : "lambda",
"body" : [ {
"_type" : "float",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ 0 ]
} ],
"parameters" : [ ]
} ]
} ]
}, {
......
{
"classifierPath" : "meta::pure::metamodel::function::ConcreteFunctionDefinition",
"content" : {
"_type" : "function",
"body" : [ {
"_type" : "func",
"function" : "letFunction",
"parameters" : [ {
"_type" : "string",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ "result" ]
}, {
"_type" : "func",
"function" : "toOne",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "forwardPayout"
} ],
"property" : "underlier"
} ],
"property" : "underlyingProduct"
} ],
"property" : "foreignExchange"
} ]
} ]
}, {
"_type" : "var",
"name" : "result"
} ],
"name" : "ForwardFX",
"package" : "cdm::model",
"parameters" : [ {
"_type" : "var",
"class" : "cdm::model::ForwardPayout",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "forwardPayout"
} ],
"returnMultiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"returnType" : "cdm::model::ForeignExchange"
}
}
\ No newline at end of file
This diff is collapsed.
{
"classifierPath" : "meta::pure::metamodel::function::ConcreteFunctionDefinition",
"content" : {
"_type" : "function",
"body" : [ {
"_type" : "func",
"function" : "letFunction",
"parameters" : [ {
"_type" : "string",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ "is_product" ]
}, {
"_type" : "func",
"function" : "and",
"parameters" : [ {
"_type" : "collection",
"multiplicity" : {
"lowerBound" : 2,
"upperBound" : 2
},
"values" : [ {
"_type" : "func",
"function" : "not",
"parameters" : [ {
"_type" : "func",
"function" : "isEmpty",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "economicTerms"
} ],
"property" : "payout"
} ],
"property" : "forwardPayout"
} ],
"property" : "underlier"
} ],
"property" : "underlyingProduct"
} ],
"property" : "foreignExchange"
} ]
} ]
}, {
"_type" : "func",
"function" : "isEmpty",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "economicTerms"
} ],
"property" : "payout"
} ],
"property" : "forwardPayout"
} ],
"property" : "settlementTerms"
} ],
"property" : "fxSettlementTerms"
} ]
} ]
} ]
} ]
}, {
"_type" : "var",
"name" : "is_product"
} ],
"name" : "Qualify_ForeignExchange",
"package" : "cdm::model",
"parameters" : [ {
"_type" : "var",
"class" : "cdm::model::EconomicTerms",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "economicTerms"
} ],
"returnMultiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"returnType" : "Boolean"
}
}
\ No newline at end of file
{
"classifierPath" : "meta::pure::metamodel::function::ConcreteFunctionDefinition",
"content" : {
"_type" : "function",
"body" : [ {
"_type" : "func",
"function" : "letFunction",
"parameters" : [ {
"_type" : "string",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ "is_product" ]
}, {
"_type" : "collection",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ {
"_type" : "func",
"function" : "not",
"parameters" : [ {
"_type" : "func",
"function" : "isEmpty",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "economicTerms"
} ],
"property" : "payout"
} ],
"property" : "forwardPayout"
} ],
"property" : "settlementTerms"
} ],
"property" : "fxSettlementTerms"
} ]
} ]
} ]
} ]
}, {
"_type" : "var",
"name" : "is_product"
} ],
"name" : "Qualify_ForeignExchange_NDF",
"package" : "cdm::model",
"parameters" : [ {
"_type" : "var",
"class" : "cdm::model::EconomicTerms",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "economicTerms"
} ],
"returnMultiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"returnType" : "Boolean"
}
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment