Chapter 7. Calling Groovy from Kermeta

Kermeta 2 provides a wrapper for Groovy. This allows to call this dynamic language directly from Kermeta.

TODO illustrate that on a small sample.

7.1. Presentation/key points

This tutorial will detail the following points:

  1. create a kermeta project

    configure the project to use the groovy wrapper

  2. add kermeta code that will call a groovy expression that uses some kermeta elements.

  3. add a sample ecore model in the project

    add some kermeta code that will use groovy to navigate and call operations in the model.

    Add kermeta code that extract the groovy expression from the model itself before applying it.

  4. compile and run the kermeta application