Book a Demo

Author Topic: Default data type in a new Code Eng. Language?  (Read 5139 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Default data type in a new Code Eng. Language?
« on: March 11, 2016, 03:04:19 am »
Hi,
We defined a custom Programming Language via the Code Engineering Data Type feature; a new Product Name "test" has been defined with a number of Data Type e.g. Integer, String, Bool...
When I create a class with Language = test, I have the associated list of Data Type in my attributes window.

However when I add an attribute without selecting the data type, I always get "int" as the default data type which does not belong to my Product.
With built-in languages, there is a working default data type.

I exported the Model Data Types as a reference data and looked at the XML, but couldn't find any property to set a Data Type as default.

Any hint?
Also, how do I delete a Product I no longer need?

thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Re: Default data type in a new Code Eng. Language?
« Reply #1 on: March 11, 2016, 04:44:24 am »
Once you have deleted all your Datatypes your product is gone.

Regarding the default Datatype I am not sure, but if know similar problems with other kind of types.

I assume there is just no way for you to set a default of your types, and the “int” is somehow burned in.
Best regards,

Peter Heintz

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Default data type in a new Code Eng. Language?
« Reply #2 on: March 12, 2016, 03:29:01 am »
I have the same issue. EA converts the DataTypes a follows:

EA  -> XML

Integer -> integer
Boolean -> boolean
OID-> string
UnlimitedNatural -> String

The same behavior, like typing anything for type  at creating of an attribute (e.g. Type in EA  "friedpoteto"  - Type in XML "string")

Thanks in advance,

Michel