Topic
1 reply Latest Post - ‏2008-11-13T17:32:08Z by SystemAdmin
SystemAdmin
SystemAdmin
151 Posts
ACCEPTED ANSWER

Pinned topic mapping rules with keys

‏2008-11-13T00:22:01Z |

[dgravot@noos.fr said:]

Hello,

In ODM , it is possible to mapp some requirements with rules only through a set of data tuples without keys. Unfortunately, for integrity reasons, I try as much as possible to index my data with keys in order to check data consistency in the DB but also to compute some other datas or to write some constraints using keys.

Could you explain why it is forbidden to use collections that use keys in order to map rules ? And is there any workaround ?

Thanks
Updated on 2008-11-13T17:32:08Z at 2008-11-13T17:32:08Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    151 Posts
    ACCEPTED ANSWER

    Re: mapping rules with keys

    ‏2008-11-13T17:32:08Z  in response to SystemAdmin

    [Didier Vidal said:]

    David,

    If you decide to present some data as rules,
       - The user may decide to classify them in different folders
       - He may want to change the priority of individual rules or folders
       - He may want to change the active status of individual rules or folders

    These makes many reasons to have potentially the same rule (same data) duplicated in a rule view (for instance in different folders), but with different settings (priority, activity status), and maybe in different contexts (depending on the classification in folders).

    This is why ODM doesn't consider multiple instances of a rule as an error, and requires that the input tuple set that are mapped to the rules don't define a subset of the fields as a key.

    Hope this clarifies,

    Didier.
    Updated on 2008-11-13T17:32:08Z at 2008-11-13T17:32:08Z by SystemAdmin