Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] Variable in Henshin rule

Hi Yannic,

Yes, in this scenario you would have to add the parameter to the multi-rule. To extract all node names you will have to iterate over match.getMultiMatches().

Hope that helps.

Christian


2013/8/17 Yannic Noller <nolleryc@xxxxxxxxx>
Hi Christian,

sorry for the late response. I wanted to create a result parameter for my Henshin rule. Is this the right way? E.g. a graph with nodes and I want to know for a specific node all the names of the connected nodes.

Cheers,
Yannic


On 13 July 2013 19:51, Christian Krause <henshin.ck@xxxxxxxxx> wrote:
Hi Yannic,

this is a parameter of a multi-rule. Assume you have an action <<create*/a/b/c>>. Open the *.henshin file in the tree-based editor and navigate to the multi-rule "c". Then add the parameter to this multi-rule. The graphical editor provides no interface to change the parameters of multi-rules.

Cheers,
Christian 



2013/7/13 Yannic Noller <nolleryc@xxxxxxxxx>
Hi all,

how is it possible to create a kind of variable in Henshin rule like the "attrName" in the following example:

Thanks in advance!
Yannic

_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev



_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev



_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev



Back to the top