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!!!