Unique Matched Rule ! [message #538223] |
Sun, 06 June 2010 17:44 |
zoro Messages: 26 Registered: April 2010 |
Junior Member |
|
|
I want to produce a single one element from 2 source elements, I could use "unique lazy rule", but the problem is, there is no place to call it ... so its "un-applicable" ....
For example consider the example of Families to Persons !
rule Member2Male {froms : Families!Member (not s.isFemale())
to t : Persons!Male (
fullName <-s.firstName + ' '+ s.familyName
)
This rule transforms a Member into a Male, but I want to to transform 2 Members (they have the same name, same properties ...) into 1 same Male ? Now how to do that ??
Your help is much appreciated !
[Updated on: Sun, 06 June 2010 22:55] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04946 seconds