Hello all,
I need your help...
lets have a source model (XMI part):
<s:source-element1 ...>
<property_1 ...>
<property_2 ...>
<property_3 ...>
</s:element1>
The count of properties is not a constant.
How can I declare a rule, where "to" part is a set of target model elements? Number of target elements must be equal to the count of the count of sub-elements in the source model.
How to obtain something similar to:
rule SourceElement1_to_Target_structure {
from
s1 : s!source-element1
to
t1 : t!target-element1(...), -- a unique element I must reference to in every t2 element
t2 : Set(t!target-element2(s, t1)) -- such structure is not allowed; used only to demonstrate the need
}
Should I use a lazy rules for that? Cannot find any description or example, how to iterate thru properties...
Sorry for so long explanation, but, cannot do that better.
Thank you for any suggestions.
[Updated on: Thu, 10 January 2013 18:44]
Report message to a moderator