[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FpML-VAL FpML NRL



Hi Matthew,

if you go to this rule, cd-1b, in the NRL text and scroll up a bit you will find a "rule set" statement above it. All NRL rules following a rule set statement are considered to be in that rule set, until the appearance of another rule set statement or the end of file.

Rule Set "Credit Index Trade"
Applies to a Trade where creditDefaultSwap.generalTerms.indexReferenceInformation is present and
creditDefaultSwap.generalTerms.indexReferenceInformation.tranche is not present

I think you wrote the equivalent in OCL.

Regards,

Christian

On 28/05/2009 20:16, Matthew D Rawlings wrote:

Christian -

I am using the NRL rules as a leg-up on rewriting the FpML validation rules in OCL.

For the NRL CD rules I can see cd-1, cd-1b, cd-1c, and cd-1d. Yet in FpML all I can see is cd-1 and cd-1b. Presumably you added these to cover Contracts as well as trades? Are you planning on contributing these back?

The FpML definition of cd-1b refers to $CreditIndex, an FpML ‘Condition’:

cd-1b (Mandatory)

Context: Trade (complex type)

[CreditIndex] [creditDefaultSwap/generalTerms/effectiveDate exists]

tradeHeader/tradeDate >= creditDefaultSwap/generalTerms/effectiveDate/unadjustedDate.

In the NRL rules the reference to $CreditIndex is missing. Why is it missing?

We had almost finished converting the FpML ‘Conditions’ to parameterless functions, with a precise definition. This one has not been converted yet.

The best way I can see to represent CreditIndex in OCL is as a Derived Property – because it is so widely used. As it is parameterless a Query seemed un-necessary.

FpML English

Condition: CreditIndex

(context: CreditDefaultSwap) generalTerms/indexReferenceInformation exists and generalTerms/indexReferenceInformation/tranche does not exist.

 

OCL

context CreditDefaultSwap::usesCreditIndex

derive: generalTerms.indexReferenceInformation->size() > 0 and generalTerms.indexReferenceInformation/tranche->size() = 0

Is there a way to do something similar to a derived property in NRL? How would you factor out something like $CreditIndex?

Regards – Matthew


This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to European legal entities.