Entry point rules

Entry point rules defines where the transformation starts execution. It is similar to a Java main.

It may have a context (in the example uml.Model), which defines what metamodel element type that will be the starting point for the execution. Its body contains statements.

uml.Model::main () { 
 
self.ownedMember->forEach(p:uml.Package)
  {
    p.mapPackage()
  }
}