i'm a newbie on VIATRA2 Framework, i need to do a model2model transformation. I have created both models and metamodels, i've created also a gtrule to map a source element to a target element, but when i run this transformation i've got the following error: "the value of the N variable can not be 'UNDEF' as it is an INPUT parameter for the node2node gtRule". I've followed the examples that i've found on various pdf tutorials. Can anyone help me? The code used is:
rule main(in G) = seq
forall N below Graphs.Grafo1 with apply node2node(N) do skip;
Thanks for the quick response and efficient, now works correctly, You could also tell me how to do through gtrule, since I was asked to use exercise as preconditions and postconditions. I also wanted to ask you, looking at the thread that I have indicated, not by chance you have material or tutorial latest, as even my tutorials are dated. thanks again
Do we have more up-to-date material for VIATRA2?
Unfortunately, no, the most recent documents are on the Eclipse wiki (https://wiki.eclipse.org/VIATRA2).
We no longer develop VIATRA2 and have instead moved to develop EMF-IncQuery and a new generation of VIATRA that provides basic transformation primitives for writing transformations in Xtend (or plain Java).
I understand, since you mention it I will try to study even EMF-IncQuery and start using it. Regarding ASMrule I've written above, You could show me how to write them in a gtrule with precondition and postcondition and also recall it as the main rule? Thank you very much for your help and your availability.