| cannot transform all suppliers in dependency [message #1065401] |
Tue, 25 June 2013 10:57  |
Mahin Abbasipour Messages: 9 Registered: June 2013 |
Junior Member |
|
|
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)
}
|
|
|
| Re: cannot transform all suppliers in dependency [message #1065409 is a reply to message #1065401] |
Tue, 25 June 2013 11:29   |
Hugo Bruneliere Messages: 560 Registered: July 2009 |
Senior Member |
|
|
Hello,
What do you mean by "transforming clients and customers"?
Are the "client" and "supplier" only String attributes or rather references to other elements?
In the second case, if they are not transformed this probably means that you have currently no rule matching them in your transformation.
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
|
| Re: cannot transform all suppliers in dependency [message #1065432 is a reply to message #1065422] |
Tue, 25 June 2013 12:35   |
Hugo Bruneliere Messages: 560 Registered: July 2009 |
Senior Member |
|
|
Well, thus it depends of the type of elements "client" and "supplier".
You should double-check the rules that are creating them and ensure that they are correct.
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
|
| Re: cannot transform all suppliers in dependency [message #1065508 is a reply to message #1065434] |
Wed, 26 June 2013 04:45   |
Hugo Bruneliere Messages: 560 Registered: July 2009 |
Senior Member |
|
|
There is no "general" way of developing a transformation, this depends on the source and target metamodels you are using as well as on the actual mapping you want to implement between them.
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01659 seconds