[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XML Schema 1.1 Best Practice: Expressing BusinessRules -

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Thu, 11 Nov 2010 10:07:29 -0500

RE:  XML Schema 1.1 Best Practice:  Expressing BusinessRules -
Thanks Michael and George.

Michael has challenged us to define the term "business rule". I'll take a go at defining it:

    A business rule is a local constraint.
    
For example, consider this XML document containing credit card data:

    <credit-card>
        <issuer>American Express</issuer>
        <name>
            <given>John</given>
            <surname>Doe</surname>
        </name>
        <number>1234 5678 1234 5678</number>
        <expiration>2012-06-01</expiration>
    </credit-card>

A community of businesses has agreed to use that markup and that structure. Also, the community has agreed to this set of values for issuer:

    - American Express
    - Visa
    - MasterCard
    - Diners Club

However, each business has its own local constraints on what credit cards it accepts. Business A accepts (American Express, Visa, and MasterCard), whereas business B only accepts (Diners Club).  Thus, each business would like to impose additional, local constraints on top of the community's structure and content data rules.

The set of credit cards that a particular business accepts is a business rule.

    A business rule is local, additional layers of constraints on top 
    of a community's structure and content data rules.

Do you agree with this definition of "business rule"?

Perhaps stating the issue in terms of business rules is too narrowly focused? Perhaps the issue should be broadened to:

   Given a common, community-accepted XML Schema, how should 
   member-specific/local constraints be expressed?

Is that a better issue? 

George points out the benefits of using Schematron for expressing business rules (i.e., local constraints). Does XML Schema 1.1 have a role in expressing local constraints?

/Roger 
 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.