[xPand]template doesn't recognise metamodel data [message #580289] |
Thu, 19 April 2007 02:52 |
Eclipse User |
|
|
|
Dear all,
I have a problem in writing xPand template. The situation is as follows:
1. i have a model (emf meta model) in a plugin.
2. i have an oAW plugin which has the workflow and templates
3. model plugin is added as a dependancy to the oAW plugin.
Now when I try to write template based on my emf meta model, xPand editor
shows the following errors: "Couldn't find Company", "unknown enumeration
literal or ... ". the template looks like so:
«IMPORT com::project::company»
«DEFINE Root FOR Company»
«EXPAND expandProject FOR project»
«ENDDEFINE»
«DEFINE expandEcu FOR Project»
«EXPAND expandEmp FOREACH employee»
«ENDDEFINE».....
i tried to ignore the errors and ran the workflow, then i got the
following exceptions:
workflow-description on line 1 'EXPAND template::Root::Root FOR model'
org.openarchitectureware.expression.EvaluationException: No Definition
'template::Root::Root for com.project.company::Company' found! in
(ExpandStatement.java:170)
in properties of the oAW plugin, EMF Meta model is checked. I tried
reloading the workbench, but still problem persists. Can anyone help me
out on this.
Thanks,
Chetan Kumar and Sandeepthi
|
|
|
Powered by
FUDForum. Page generated in 0.27210 seconds