Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » ETL
icon3.gif  ETL [message #510015] Tue, 26 January 2010 03:39 Go to previous message
c  is currently offline c
Messages: 36
Registered: December 2009
Member
Hello again. I have the following problem: when there is executed the following rule of transformation of primitive types the problem that I have is that when a type does not expire with the rule, in this case that is of type "DATED" does not expire with the rule String2Varchar there is generated a primitive type that for fault is of type CHAR.


rule String2Varchar
transform pr:UML!PrimitiveType
to v:modeloOR!PrimitiveType{

if((pr.name='String') or(pr.name='STRING') or (pr.name='string')){
'String2Varchar'.println();
v.Name:=modeloOR!BasicTypes#CHAR;
}
}




But I believe that the correct functioning is that if a type for example to type "DATE" it does not expire with the "if", it does not have to generate a TypePrimitive on not having expired with the judgment IF.



Dimitros, your tell me that was creating a file '.model ' but ¿ I can it execute the rules ETL from a file '.ecore ' of entry and another file '.ecore ' of exit?

If the file of entry was '.ecore ', the rules ETL serian like that?


rule Package2Model
transform t :
ecore!Package
to n : ecore!Model
{
n.Name:= t.Name;
'Package2Model '.println();
}

Thanks!!!
 
Read Message icon3.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[EOL, Ecore2GMF.eol] How duplicate GmfMap!NodeMapping?
Next Topic:Transform UML Class diagram to UML Class diagram
Goto Forum:
  


Current Time: Sun May 19 05:55:06 EDT 2013

Powered by FUDForum. Page generated in 0.06169 seconds