Problem transforming model to model

I have an structure StructureA in LanguageA and a StructureB in LanguageB. Both have a property name of type string. I want to transform StructureA to StructureB. So I created a new root mapping rule in the generator. I selected StructureA as a concept and selected StructureB in the new root template. Pressed enter.. The new file appears in the project tree but the mapping is not created. Following error occurs after building:

no template is defined for the rule.. 

Creating a root template for a class works without problems.. Any idea how I can fix this or what I'm missing here?

2 comments
Comment actions Permalink

StructureB must implement INamedConcept for this to work.

1
Comment actions Permalink

Hi Vaclav,

Thanks for the help. That fixed that issue.

I'm following this training https://www.youtube.com/watch?v=xXmYE9HrooM&t=1182s In the video the teacher adds an Property macro to map the names from structureA to structureB. But it's not available in the intentions list. It is available when I map it to a Java class. Any idea how to fix this? 

 

.edit.

I fixed it.. Editor for the concept was missing. 

0

Please sign in to leave a comment.