[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[henshin-dev] Free parameters not defined when using multi-nodes
|
Hi all,
I am experiencing problems with rule parameters in multi nodes. I cannot
use free parameters when I have multi-nodes.
I made an exemplary case with an exogenous transformation where I need to
convert between different name formats. Without multi-nodes the rule
works. When I use multi-nodes, I get
"Exception in thread "main" java.lang.RuntimeException:
sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "fn" is not
defined. (<Unknown source>#1) in <Unknown source> at line number 1
at
org.eclipse.emf.henshin.interpreter.impl.EngineImpl.evalAttributeExpression
(EngineImpl.java:732)
at
org.eclipse.emf.henshin.interpreter.info.VariableInfo.createConstraints(Var
iableInfo.java:168)
at
org.eclipse.emf.henshin.interpreter.info.VariableInfo.createVariables(Varia
bleInfo.java:106)
at
org.eclipse.emf.henshin.interpreter.info.VariableInfo.<init>(VariableInfo.j
ava:72)
at
org.eclipse.emf.henshin.interpreter.info.RuleInfo.<init>(RuleInfo.java:26)
at
org.eclipse.emf.henshin.interpreter.impl.EngineImpl.getRuleInfo(EngineImpl.
java:550)
at
org.eclipse.emf.henshin.interpreter.impl.EngineImpl$MatchFinder.<init>(Engi
neImpl.java:240)
at
org.eclipse.emf.henshin.interpreter.impl.EngineImpl$MatchFinder.computeNext
Match(EngineImpl.java:336)
at
org.eclipse.emf.henshin.interpreter.impl.EngineImpl$MatchFinder.hasNext(Eng
ineImpl.java:253)
at
org.eclipse.emf.henshin.interpreter.impl.EngineImpl$MatchFinder.next(Engine
Impl.java:265)
at
org.eclipse.emf.henshin.interpreter.impl.EngineImpl$MatchFinder.next(Engine
Impl.java:1)
at
org.eclipse.emf.henshin.interpreter.impl.RuleApplicationImpl.execute(RuleAp
plicationImpl.java:89)
at
org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.executeRule(Un
itApplicationImpl.java:175)
at
org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.doExecute(Unit
ApplicationImpl.java:99)
at
org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl.execute(UnitAp
plicationImpl.java:89)
at
HenshinTransformation.executeTransformation(HenshinTransformation.java:54)
at HenshinTransformation.main(HenshinTransformation.java:30)"
To show my case I attached the example eclipse project to this mail.
Do I use the multi-nodes incorrectly?
Best regards
Marco
Attachment:
henshin.example.family2person.zip
Description: henshin.example.family2person.zip