Page last modified 14:23, 31 Dec 2015 by Antero

4. Message location

    Table of contents

    Version as of 17:02, 7 Dec 2021

    to this version.

    Return to Version archive.

    View current version


    OCL-queries are executed whenever OCL-statement returns false. Their purpose is to locate a defined occurrence from the XML-file, so that error message is shown in wherever the creator of the rule sees fit.

    OCL-queries are optional. Whenever a query is not defined and OCL-statement returns false, the defined error message is shown in the location of context.


    The usage of queries in XMLdation environment is often simple; they could be thought as an address where to point the error message, and often it is enough to list the desired element in an xPath style, but replacing context with "self" and separating elements using a dot notation.