Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Is it possible to have elements in the target model?
[ATL] Is it possible to have elements in the target model? [message #537719] Thu, 03 June 2010 09:19 Go to next message
Eclipse UserFriend
I have an target output model which look like:

<Male fullName="Jim March"/>


but I want to have the code like this:

<Male>
  <fullName>Jim March</fullName>
</Male>


Is this possible and how? Thank you very much for your help.

Cheers Roger

[Updated on: Thu, 03 June 2010 09:23] by Moderator

Re: [ATL] Is it possible to have elements in the target model? [message #537741 is a reply to message #537719] Thu, 03 June 2010 09:31 Go to previous messageGo to next message
Eclipse UserFriend
Le 03/06/2010 15:19, Roger80 a écrit :
> I have an target output model which look like:
>
> <Male fullName="Jim March"/>
>
> but I want to have the code like this:
>
>
> <Male>
> <fullName>Jim March</fullName>
> </Male>
>

An ATL tranformation involves XMI models both for input and output, and
they are quite more complex than your example.
Could you be more explicit of what you are trying?
--
Cordialement

Vincent MAHÉ

Ingénieur Expert - Projet IDM++ - Équipe AtlanMod
École des Mines de Nantes
La Chantrerie - 4, rue Alfred Kastler
B.P. 20722 - F-44307 NANTES Cedex 3
Tel: (33)2 51 85 81 00
Re: [ATL] Is it possible to have elements in the target model? [message #537752 is a reply to message #537719] Thu, 03 June 2010 10:41 Go to previous messageGo to next message
Eclipse UserFriend
This is more an EMF question because it's all about serializing the model.

To use a registered factory in ATL if you use a launch configuration, just use for the output model the file extension associated with your EMF metamodel.
Re: [ATL] Is it possible to have elements in the target model? [message #537772 is a reply to message #537752] Thu, 03 June 2010 11:27 Go to previous message
Eclipse UserFriend
I have to create a prototype for my Master Thesis. The topic of the thesis is to transform EPC to BPMN, that means from an EPC input XML model to an BPMN output XML model.
My wish Input model so far looks like this:

<event id="1">
				<name>Loan request</name>
			</event>
			<arc id="100">
				<flow source="1" target="2"/>
			</arc>
			<function id="2">
				<name>Request creation</name>
			</function>


My output model has to look something similar like this:

<startEvent id="1"/>
<sequenceFlow sourceRef="1" targetRef="2"/>
<task id="2" name="Request creation"/>


I already created the BPMN metamodel and also the EPC metamodel, but there is a problem in, so that I started again from scratch with the EPC metamodel. So far I just have the follwing results:

Input:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="EPK">
	<BaseElement id="1"/>
		<Event id = "1" name="Gugu"/>
		<Arc id = "1" name="Gugu2"/>
</xmi:XMI>


Output:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="BPMN">
  <StartEvent id="1" name="Gugu"/>
  <SequenceFlow id="1" name="Gugu2"/>
</xmi:XMI>


The wish Input file so far is not correct, as you can see it looks completely different than the one I use at the moment. Sad What I need is that I can use the text between an element <element>text</element> and put it to the Output file.



@Sylvain
Can you explain me what you exactly mean with your sentence. I am new in ATL. Do you maean that you can define the extension of your metamodel and thus the extension of the model?

[Updated on: Thu, 03 June 2010 11:36] by Moderator

Previous Topic:[ATL] what happens to my Profiles
Next Topic:[QVTO] mapping to EType
Goto Forum:
  


Current Time: Tue Jun 24 01:11:53 EDT 2025

Powered by FUDForum. Page generated in 0.06197 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top