Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Model-to-Model Transformation » Henshin pattern matching for units (Henshin Transformations with automated pattern matching for units)
Henshin pattern matching for units [message #1848987] Tue, 28 December 2021 13:04 Go to next message
Thomas Stifter is currently offline Thomas StifterFriend
Messages: 5
Registered: September 2021
Junior Member
Hello together,

I am currently working with Henshin for model transformations. So far I used Henshin rules where I create a partial match first, set the parameter values and then use "findMatches(...)" method of the engine instance as follows (taken from

Rule rule = system.findRuleByName("createAccount");
Match partialMatch = new MatchImpl(rule);
partialMatch.setParameterValue(rule.getParameterByName("client"), "Alice");
partialMatch.setParameterValue(rule.getParameterByName("accountId"), 5);
for (Match match : engine.findMatches(rule, graph, partialMatch)) {

I am wondering now how I can do the same but on the Henshin unit level? I have a priority unit with subunits and would like to find matches in an automated way that allow for execution of a rule/rules encompassed in my unit. The "findMatches(...)" method only takes rule instances as argument, however. Anyone an idea how to go about this?

Regards and thanks in advance for any suggestions!

[Updated on: Tue, 28 December 2021 13:05]

Report message to a moderator

Re: Henshin pattern matching for units [message #1848999 is a reply to message #1848987] Tue, 28 December 2021 19:46 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7665
Registered: July 2009
Senior Member

There is a separate Henshin forum:

I've not noticed anyone on this general purpose M2M forum asking or answering Henshin questions.


Ed Willink

[Updated on: Tue, 28 December 2021 19:52]

Report message to a moderator

Previous Topic:Help me Generate diagram code error:
Next Topic:M2M for M2T instead of Acceleo?
Goto Forum:

Current Time: Sun Jul 21 15:58:48 GMT 2024

Powered by FUDForum. Page generated in 0.03713 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top