[Xpand] Referenced model unaccessible [message #510346] |
Wed, 27 January 2010 05:29  |
Eclipse User |
|
|
|
Hello,
I try to prettyprint a model that refers to another model.
In my metamodel there is a class named AtomicProposition that has a reference to another metamodel of type Variable that has an attribute name.
The rules for prettyprinting these modelelements are as follows:
«DEFINE generatePathFormula FOR AtomicProposition»«EXPAND generateVariable FOR this.Variable»«ENDDEFINE»
«DEFINE generateVariable FOR Variable»«this.name»«ENDDEFINE»
Both metamodels are imported in the template.
When I execute my template using a workflow, nothing is generated for the variable.
However, when I replace in the generateVariable definition:
by
I get the following output for the variable:
slco.impl.VariableImpl@a084f8 (eProxyURI: LegoCase-plain.slco#//@classes.3/@stateMachines.1/@variables.0)
It appears to me that the variable can be found, but the name cannot be printed.
Does anybody have an idea what my problem could be?
|
|
|
|
|
|
Re: [Xpand] Referenced model unaccessible [message #511341 is a reply to message #510776] |
Mon, 01 February 2010 05:59  |
Eclipse User |
|
|
|
Hello Sven,
Thank you for your answer. Inserting the absolute path solved my problem.
However, I am not the only one using this transformation and you can imagine that tehe other users may have a different directory lay-out on their hard drives. This means that they would have to change the workflow in to use this transformation.
Are there other ways to solve my problem?
Regards,
Marcel
[Updated on: Mon, 01 February 2010 06:00] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04047 seconds