Skip to main content



      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 08:04 Go to next message
Eclipse UserFriend
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 https://www.eclipse.org/lists/henshin-dev/msg00516.html):

 
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)) {
          System.out.println(match);
}


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 08:05] by Moderator

Re: Henshin pattern matching for units [message #1848999 is a reply to message #1848987] Tue, 28 December 2021 14:46 Go to previous message
Eclipse UserFriend
Hi

There is a separate Henshin forum: https://accounts.eclipse.org/mailing-list/henshin-user

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

Regards

Ed Willink

[Updated on: Tue, 28 December 2021 14:52] by Moderator

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


Current Time: Sun May 18 21:23:17 EDT 2025

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

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

Back to the top