Operation and parameters code generation queries [message #1738564] |
Wed, 20 July 2016 21:10  |
Higo Felipe Messages: 4 Registered: June 2016 |
Junior Member |
|
|
Hello,
I'm working with the UML 2.4.1 metamodel. After having created a model based on that metamodel, I want to generate the code of the same model. The model has operations, which, in turn, have parameters, as informs the metamodel on page 95 of this documentation.
I read some documentation and articles on the Acceleo and MTL language, but it was not something so clear and plain to me, and I could not get a query to generate these operations with its parameters. Could anyone help me with more information?
Best regards,
H.
|
|
|
|
|
Re: Operation and parameters code generation queries [message #1738706 is a reply to message #1738627] |
Fri, 22 July 2016 12:49  |
|
Hi,
Please tell us what you have done and how it fails, since we can't answer much without a specific question and example of what you're trying to achieve.
Generating operations should be something that the umlg generators do, and you can find examples on how to do it directly there if it's not exactly meeting your needs, for example, this one shows how to iterate over the parameters, or this one the shows how the operation's signature is generated.
Laurent Goubet
Obeo
|
|
|
Powered by
FUDForum. Page generated in 0.03257 seconds