[gme-users] The OCL isUnique iterator
zolmol at isis.vanderbilt.edu
Fri Oct 13 19:32:27 CDT 2006
Such an expression would do the job:
let tbs=project.allInstancesOf( Table) in tbs.isUnique( i : Table | i.tableID)
From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Nicki Lehmann Møller
Sent: Friday, October 13, 2006 2:14 AM
Subject: [gme-users] The OCL isUnique iterator
I have a created a Table model that has an attribute called tableID. This attribute should be unique. Therefore I have created the OCL statement
and attached the constraint to the table object (the OnCreate event), which sadly always evaluates to false.
I'd like to note that the reason I use project.allInstancesOf(Table) is that a table can exist in different parent models.
I any of you guys or girls could please help me I'd really be happy.
Have a nice weekend
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gme-users