Skip to main content

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

One more remark: you can also take a look at the bank example to see how parameters can be used:

http://www.eclipse.org/henshin/examples.php?example=bank

Cheers,
Christian


2014-04-13 15:53 GMT+02:00 Christian Krause <henshin.ck@xxxxxxxxx>:
Hi Javier,

the problem here is that you are using a variable called "procName" which you haven't declared. The way to do it would be to add a parameter called "procName" to the rule. In the graphical editor, you can click on the rule name label in the top and change "aaaaa" to either:

aaaaa(procName)

or

aaaaa(procName : EString)

In both cases, a parameter "procName" is declared which the rule can then use to match the process name attribute. This parameter can (but does not have to be) typed, as shown in the second version.

I hope this helps.

Cheers,
Christian


2014-04-13 15:22 GMT+02:00 Javier Scayola <javier.scayola@xxxxxxxxx>:
Hi all,

I'm using henshin to do some basic transformations, but I'm having a problem I hope you can help me with.

I want to transform the model in the attachment ModelToTransform.png, applying the transformation in the attachment RuleToApply.png. But when I try to run the transformation, I receive the error: "The transformation could not be applied to the given model".

What I want to do is a rule to create a Class for each Process, assigning the process name to the created class name. There are 3 Processes in the model, so I expect the transformation to create 3 Classes with its process names.

Could you help me identify the problem?

Thanks in advance.

Regards,
Javier



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




Back to the top