| [news.eclipse.modeling.gmt] Re: [Epsilon] Problems using HUTN with UML metamodel |
Hello,
--Pau Giner
Hi Pau,
As you anticipated, the problem was caused by UML2 using different datatypes to Ecore. We've fixed the issue by validating against the underlying Java datatype, rather than the Ecore datatype.
We're currently undergoing migration activities with Epsilon, so we're not interacting with the CVS server. So I've attached a fix to this message. To apply the fix, you'll need to:
1) Close Eclipse
2) Locate the HUTN engine plugin JAR in your Eclipse installation. Usually called: <<eclipse location>>/plugins/org.epsilon.hutn.engine_1.0.1.jar
3) Unzip the HUTN engine plugin JAR, and overlay the binary code directory with the archive file attached to this message.
4) Create a new JAR file from the overlay, and replace the org.epsilon.hutn.engine_1.0.1.jar
5) Restart Eclipse
Let us know if this fixes the problem, if you need any clarification on how to overlay the attachment.
If you could also open a bug report on the GMT buzilla website (http://dev.eclipse.org/bugs/buglist.cgi?product=gmt&cmdtype=doit&order=Reuse+same+sort+as+last+time), we'll then patch Epsilon once our CVS migration has been completed. Thanks!
Many thanks, Louis.
Pau Giner wrote:Hello,
I've experienced problems with HUTN when trying to define a UML model. The problem I guess is that UML metamodel uses its own dataTypes. So HUTN cannot convert strings to the UML-defined String datatype.
For example, if I define the following:
@Spec { MetaModel "uml" { nsUri = "http://www.eclipse.org/uml2/2.1.0/UML" } }
Packages { Package "Pk" { name: "package" nestedPackage: Profile "Pr" { name: "profile" } ownedType: Class "C" { name: "class" } } }
I get the following error:
[Line: 9, Column: 5, Reason: Expected String for: name, Line: 10, Column: 35, Reason: Expected String for: name, Line: 11, Column: 28, Reason: Expected String for: name]
Is there any construct to handle the creation of these datatypes?
--Pau