| View previous topic :: View next topic |
| Author |
Message |
richwunder
Joined: 17 Jul 2007 Posts: 2
|
Posted: Wed Oct 10, 2007 11:01 am Post subject: Set an attribute to each memer of a collection in action exp |
|
|
Is it possible, With OCL/EAL to set an attribute in each object at the multi
end of an association
clMeeting -[0..1]--------------------------[attendies 0..*]-- clPerson
Set a boolean attibute scheduled for each attendie
TIA
Rich. |
|
| Back to top |
|
 |
Jan Norden (ECO group] Guest
|
Posted: Wed Oct 10, 2007 3:32 pm Post subject: Re: Set an attribute to each memer of a collection in action |
|
|
Rich Wunderlich wrote:
| Quote: | Is it possible, With OCL/EAL to set an attribute in each object at
the multi end of an association
clMeeting -[0..1]--------------------------[attendies 0..*]-- clPerson
Set a boolean attibute scheduled for each attendie
TIA
Rich.
|
an>Asociation->collect(e|e.booAttr:=true)
should work.
It will alse return a Collection(Boolean) that are all true, but you
can ignore than
--
Jan Norden, ECO Architect
CapableObjects AB
http://www.capableobjects.com |
|
| Back to top |
|
 |
|