Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] Henshin transformations for UML

Hi Thorsten,

 

Thank you for the help. That indeed solved the problem. May I also ask what is the procedure you use for debugging transformations? Also, how do you know what is causing the error (the error message I received seemed quite generic and did not point to the actual problem)?

 

Cheers,

Vlad

 

From: henshin-dev-bounces@xxxxxxxxxxx [mailto:henshin-dev-bounces@xxxxxxxxxxx] On Behalf Of Thorsten Arendt
Sent: Wednesday, April 30, 2014 8:36 PM
To: Henshin developers mailing list
Subject: Re: [henshin-dev] Henshin transformations for UML

 

Hi Vlad.

Please find attached a project containing the debugged files. You should use String literals in the following way: name="foo" instead of: name=foo.

Regards,
Thorsten

Hi Thorsten,

 

Here is the .henshin file, as well as the .uml file I am trying to run it on. According to the .notation file produced by Papyrus (also attached), the Ecore UML metamodels used in the .henshin and .uml models match.

 

The transformation is quite basic: I want to rename the “id” attribute of class “Record” to “identifier” (actually, I would like to do this for all classes whose names end in the “Record” suffix, but I didn’t get to that part yet).

 

Cheers,

Vlad

 

>Hi Vlad.

 

>Please post the .henshin file.

 

>-Thorsten

 

> Hi,

> I am trying to create some Henshin transformations for UML models. So

> far I have created the source models using Papyrus, which results in

> files with names of the form "model.uml". However, when I try to

> execute a Henshin transformation on such a model, I get the following

> error message: "The transformation could not be applied to the given

> model". When creating the Henshin diagram I have selected the

> following package from the EMF EPackage registry:

> http://www.eclipse.org/uml2/4.0.0/UML - perhaps this does now match

> the Ecore UML metamodel used by Papyrus.

> What would be the best approach for writing and executing

> transformations for UML models?

> Cheers,

> Vlad

 

 

Vlad Acretoaie

PhD student

DTU Compute

 

Technical University of Denmark

Department of Applied Mathematics and Computer Science

Matematiktorvet

Building 303B, Room 055

DK - 2800 Kgs. Lyngby

Denmark

Direct +45 45253645

rvac@xxxxxx

www.compute.dtu.dk/~rvac

 

 

 




_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev

 

--
Dipl. Inf. Thorsten Arendt
Philipps-Universität Marburg
Fachbereich Mathematik und Informatik
Hans-Meerwein-Str.
D-35032 Marburg
Office: 05D18
Phone : +49-6421-2821540
Email : arendt@xxxxxxxxxxxxxxxxxxxxxxxxx
--


Back to the top