FpML Issues Tracker

435: Ambiguity in business process rule 1

August 14, 2007

closed

Minor

Always

Validation Rules

Admin

mgratacos

Summary

The rule states: " Context: Novation. If firstPeriodStartDate is present, @href must match the @id attribute of a party element."

It should be rewritten to state: " Context: //element(*, Novation). When firstPeriodStartDate is present, then firstPeriodStartDate/@href must correlate to a //element(*, Party)/@partyId".

The changes here are: 1. We need to know it is the href on the firstPeriodStartDate 2. We need to know it is the partyId on any Party 3. We need to know Novation is a type and not an element. 4. We need to know the context of the Novation type.

Notes:

  • matthew

    08/14/07 8:39 pm

    Do you mean:

    for $novation in //element(*, fpml:Novation)[fpml:firstPeriodStartDate]
    return

    Or:

    for $novation in //element(*, fpml:Novation)[fpml:firstPeriodStartDate]
    return

    It isn’t clear what should happen if there is more than one fpml:firstPeriodStartDate

  • mgratacos

    09/14/07 9:06 am

    This rule has been rewritten making it closer to the reference rules (based on eCore). This is the updated rule:

    Context: FirstPeriodStartDate (complex type)
    bp-1 (Mandatory)
    The @href attribute must match the @id attribute of an element of type Party.

  • matthew

    09/14/07 10:25 am

    The rewrite solves many problems, but one problem still remains: there is no element of type Party within the context of FirstPeriodStateDate. You either need to change the context or be explicit that the context does not apply to “an element of type Party”.

  • mgratacos

    09/25/07 1:36 pm

    Validation Working Group 2007-09-25: Agreed to add path to @id attribute of party element.

  • mgratacos

    10/22/07 4:22 pm

    Proposed change:

    Context: FirstPeriodStartDate (complex type)
    bp-1 (Mandatory)
    The @href attribute must match the ../../party/@id attribute.

  • iyermakova

    11/19/07 7:16 pm

    In bp-1 and ref-5 rules, added path to @id attribute of party element:

    FirstPeriodStartDate The @href attribute must match the ../../party/@id attribute

  • iyermakova

    11/19/07 7:18 pm

    bp-1 – the change has been committed to the trunk (4.4) and 4.3 branch.
    ref-5 – the change has been committed to the trunk (4.4).

  • Leave an update

    You must be logged in to post an update.