Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Is it possible to two classes (input) into one class (output) in a rule
[ATL] Is it possible to two classes (input) into one class (output) in a rule [message #537796] Thu, 03 June 2010 16:28 Go to next message
Roger80  is currently offline Roger80
Messages: 79
Registered: May 2010
Member
Hi all,

I am writing a lot of issues right now, because I am a newbie and I have to learn a lot. Smile
My problem is, that you can see that I have to rules posted below, both of them have the same output class, but different input classes. The output model has then two lines which lool like:

<SequenceFlow id="1" name="Gugu2"/>
<SequenceFlow sourceRef="1" targetRef="2"/>

instead of:
<SequenceFlow id="1" name="Gugu2" sourceRef="1" targetRef="2"/>

How can I make it sure that everthing is written in one line?
Thanks a lot for your help and effort!!!


rule Arc {
from
	e : EPK!Arc
	
to 
	b : BPMN!SequenceFlow
	 (
	 	id <- e.id,
	 	name <- e.name
	 	
 	)
 }

rule Flow {
from
	e : EPK!ControlFlow

to 
	b : BPMN!SequenceFlow
	 (
	 	sourceRef <- e.source,
	 	targetRef <- e.target
	 	
 	)
 }
Re: [ATL] Is it possible to two classes (input) into one class (output) in a rule [message #824326 is a reply to message #537796] Mon, 19 March 2012 14:37 Go to previous message
Emwedish Endargachew is currently offline Emwedish Endargachew
Messages: 27
Registered: April 2011
Junior Member
HI,

I have seen the post on the transformation of giving two input classes and transforming it to one target class. Have you finally found the solution. I am currently having the same problem and it would be helpful if you can share the solution with me.

thanks
Previous Topic:Dependencies between Metamodels
Next Topic:Nullpointer XMLHandler#createObjectFromFeatureType - Reference internal a second metamodel
Goto Forum:
  


Current Time: Tue Oct 21 12:19:10 GMT 2014

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

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