siwiwit / model2roo

Automatically exported from code.google.com/p/model2roo
0 stars 0 forks source link

Common property data types are not properly generated on roo script #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Tests made with Papyrus.

1. Create a new Papyrus model, created with the option "A UML model with basic 
primitive types" selected.
2. Create a property. The only imported data types are "Boolean", "Integer", 
"String", and "UnlimitedNatural".
3. As there is no Date type, I select the property that I have just created for 
a class, and select on the Eclipse "Properties" window, the "Advanced" tab, in 
order to avoid the default type editor that is accessed through the "UML" tab. 
On the "Advanced" tab I select the Type entry, and press the "..." button.
3. Select the "<<eDataType>> <Primitive Type> Date" entry.
4. Open the .uml file and execute the "Model2Roo - Transform UML to Spring Roo" 
action.
5. The following output is shown on the console:

Generating script for package: Model...
Generating Roo script: Model.roo...
The Uml package could not be successfully transformed to a Spring Roo script
Generating script for package: Model...
Generating Roo script: ecore.roo...
Roo script successfully generated!
Executing Roo script...
The Roo script could not be successfully executed: Cannot run program "roo" (in 
directory "/Users/oscarboubou/Documents/workspace-sts-2.7.1.RELEASE/test1"): 
error=2, No such file or directory

6. The roo file generated is called score.roo and does not contain anything.

What is the expected output? What do you see instead?

A .roo script with the property correctly defined, with a "date" data-type 
assigned.

What version of the product are you using? On what operating system?

Last current STS and Model2Roo versions.

Please provide any additional information below.

More data types are needed: real, etc.

Perhaps a work-around for importing more datatypes, or for properly using ECore 
datatypes?

Thanks in advance

Original issue reported on code.google.com by altairpo...@gmail.com on 22 Aug 2011 at 4:37

GoogleCodeExporter commented 9 years ago
Previous error happens each time a property has a datatype distinct from the 
primitive types initially imported or a class of the project.

Any help about how to create, import or declare more datatypes?

Thanks in advance,

Oscar

Original comment by altairpo...@gmail.com on 22 Aug 2011 at 10:27

GoogleCodeExporter commented 9 years ago
Hi,

Special field types can now be specified through the following stereotypes, 
defined in the RooStructure Profile:

RooFieldDate
RooFieldEnum
RooFieldBoolean
RooFieldString
RooFieldNumber

For the RooFieldNumber stereotype, you can specify the following NumberTypes:

Byte
Float
Short
Long
Integer
Double

Best regards,
Juan Castrejón

Original comment by jccastrejon on 16 Nov 2012 at 8:11