|
Re: Type in Ecore not found [message #1749247 is a reply to message #1749231] |
Sun, 04 December 2016 10:41 |
Eclipse User |
|
|
|
Q1. They are just two different ways of representation, one of which can be converted to the other one automatically.
Q2. B1 is not a kind of EClass, it is a package. I can guess that ETL rules are design to generate instances of EClasses. So your rule should be something like:
rule basic
transform
source:UML_Input!Model
to
target:B1!C
{
target.name=source.name;
}
assuming that your output model is named B1 and you are trying to create an instance of C.
|
|
|
|
|
Re: Type in Ecore not found [message #1749271 is a reply to message #1749257] |
Mon, 05 December 2016 04:51 |
John Dawes Messages: 19 Registered: November 2016 |
Junior Member |
|
|
Dimitris Kolovos wrote on Sun, 04 December 2016 16:19Hi,
As long as your model is named B1 in the model configuration dialog of your run configuration this should work fine. If it doesn't, could you please put together a minimal example [1] we can use to reproduce this?
Cheers,
Dimitris
[1] https://www.eclipse.org/epsilon/doc/articles/minimal-examples/
Hi Dimitris,
Thanks for pointing out the problem. The model was not named B1 in the model configuration window previously and I think that's what caused the problem.
However, I am still having issue in launching this transformation . Now, I am getting a Java runtime null-pointer exception. Please find attached screenshots. As you will see, for making it simple, I used the 'tree.model' from epsilon example directory as the input and B1.ecore as the metamodel of the output. Am I doing anything wrong?
|
|
|
|
Re: Type in Ecore not found [message #1749339 is a reply to message #1749306] |
Mon, 05 December 2016 16:12 |
|
Hi John,
It appears that the Name attribute of your Cla1 class is missing a type (the way I found out was by opening J1.ecore, right-clicking on the J1 EPackage and selecting "Validate"). Setting its type to EString seems to be doing the trick.
Cheers,
Dimitris
|
|
|
|
Powered by
FUDForum. Page generated in 0.04942 seconds