Community
Participate
Working Groups
Hello, Using the emf-vm, and using the toString method on an EMF enumeration, I have a different behavior depending on the way I launch the transformation. To be able to return a specific String, I have manually modified the toString method of my enumeration (to return a literal value and not the name). When I launch the transformation using a configuration, it works as expected. When I launch the transformation in a programmatic way, the toString method returns the value of "name" attribute. Regards Gabriel PS: using the "old" regular vm, it works as expected in both cases.
The difference of behaviour may come from the way you load the metamodel. ATL is able to load a metamodel from a single ecore file, but that will bypass the EMF implementation of the metamodel if present (and the associated redefined toString method). Could you please check that you load the metamodel from the EMF Registry (using its uri) in your programmatic launch code ?