cannot transform all suppliers in dependency [message #1065401] |
Tue, 25 June 2013 10:57  |
Eclipse User |
|
|
|
Hi,
I used this rule for dependency and the thing is that for some dependencies in the created output model, it transforms both clients and suppliers and for some, it only transforms clients. When I check with the debug, it shows the suppliers are not empty. Can any one guess what is wrong here?
has Stereotype is a helper which is defined before as follow:
helper context MM!Element def: hasStereotype(name : String) : Boolean =
not self.getAppliedStereotype(name).oclIsUndefined();
rule RelatedTo {
from s:MM!Dependency (s.hasStereotype('MyProfile::RelatedTo'))
to t: MM2!Dependency (
name <- s.name -> debug ('name'),
client <- s.client -> debug ('client'),
supplier <- s.supplier -> debug ('supplier')
),
tt: MM2! RelatedTo (base_Dependency <- t)
}
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04942 seconds