|
Re: ATTENTION: Couldn't resolve type for Field... [message #494365 is a reply to message #493502] |
Fri, 30 October 2009 08:16   |
Eclipse User |
|
|
|
Hi dtcm,
please be more careful with the subject of your posts. Uppercase
ATTENTION is likely to be ignored for obvious reasons.
How does the original, working oaw workflow look like?
Does it contain any registered metamodel?
I guess you should try to use registerGeneratedEPackage to load the
field and table metamodel.
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
dtcm schrieb:
> Hi there !
>
> i'm totally newbie to "OAW" and Eclipse.
>
> i'm trying to adapt OAW4 project to OAW5.
>
> pls find next the console errors , the workflow, and the beginning of
> the template.
>
> it's like the "IMPORT field" wasn't recognized.
>
>
>
> Console Errors :
>
> 26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> 26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: EMF Modeling Workflow Engine 0.7.2, Build v200908120417
> 26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: (c) 2005-2009 openarchitectureware.org and contributors
> 26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> 26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: running workflow:
> C:/Projects/Migration/Workspace/Components/src/workflow/Crea teProgUnload.mwe
>
> 26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.utils.StandaloneSetup
> setPlatformUri
> INFO: Registering platform uri 'C:\Projects\Migration\Workspace'
> 26 oct. 2009 13:55:34
> org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
> INFO: Reader(modelReader): Loading model from
> platform:/resource/Components/src/model/table/T28616.xmi
> 26 oct. 2009 13:55:34
> org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
> INFO: CheckComponent: slot model check file(s): metamodel::table 26 oct.
> 2009 13:55:34 org.eclipse.emf.mwe.core.container.CompositeComponent
> internalInvoke
> INFO: Generator: generating 'templates::TemplateProg::templateGeneral
> FOR model' => ../Components/src-gen/
> 26 oct. 2009 13:55:34 org.eclipse.xtend.typesystem.emf.EClassType
> getContributedFeatures
> ATTENTION: Couldn't resolve type for Field
> 26 oct. 2009 13:55:34 org.eclipse.xtend.typesystem.emf.EClassType
> getContributedFeatures
> ATTENTION: Couldn't resolve type for Field
> 26 oct. 2009 13:55:34
> org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent
> invokeInternal
> GRAVE: Error in Component of type org.eclipse.xpand2.Generator:
> EvaluationException : Couldn't find property 'field' for inner type
> table::Column'
> templates::TemplateProg.xpt[3563,5] on line 86
> 'this.columns.field' templates::TemplateProg.xpt[551,28] on
> line 22 'EXPAND dataDivision FOR this'
> templates::TemplateProg.xpt[293,28] on line 12 'EXPAND templateProg
> FOR this'
> [23,57] on line 1 'EXPAND templates::TemplateProg::templateGeneral
> FOR model'
>
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner
> executeWorkflow
> GRAVE: Workflow interrupted. Reason: Couldn't find property 'field' for
> inner type table::Column'
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: this.columns.field; Reported by: Generator:
> generating 'templates::TemplateProg::templateGeneral FOR model' =>
> ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: this.columns.field.sapiensOutSize; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element:
> calculTailleClasse(this.columns.field.sapiensOutSize); Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: EXPRESSION:
> calculTailleClasse(this.columns.field.sapiensOutSize); Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: dataDivision : Table; Reported by: Generator:
> generating 'templates::TemplateProg::templateGeneral FOR model' =>
> ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: EXPAND dataDivision FOR this; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element:
> org.eclipse.internal.xpand2.ast.FileStatement@c44b88; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element:
> org.eclipse.internal.xpand2.ast.LetStatement@13ad33d; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: templateProg : Table; Reported by: Generator:
> generating 'templates::TemplateProg::templateGeneral FOR model' =>
> ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: EXPAND templateProg FOR this; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element:
> org.eclipse.internal.xpand2.ast.IfStatement@102799c; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element:
> org.eclipse.internal.xpand2.ast.IfStatement@17e121c; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element:
> org.eclipse.internal.xpand2.ast.IfStatement@1d6f122; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: templateGeneral : Table; Reported by: Generator:
> generating 'templates::TemplateProg::templateGeneral FOR model' =>
> ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: EXPAND templates::TemplateProg::templateGeneral
> FOR model; Reported by: Generator: generating
> 'templates::TemplateProg::templateGeneral FOR model' =>
> ../Components/src-gen/)
>
>
>
> Workflow
>
> <?xml version="1.0"?>
> <workflow>
> <property name="model" value="Components/src/model/table/T28616.xmi" />
> <property name="workspace-folder" value="../Components/src-gen/"
> />
>
> <!-- set up EMF for standalone execution
> --> <bean
> class="org.eclipse.emf.mwe.utils.StandaloneSetup" >
> <platformUri value=".."/>
> </bean>
>
> <!-- load model and store it in slot 'model'
> --> <component id="modelReader"
> class="org.eclipse.emf.mwe.utils.Reader"> <uri
> value="platform:/resource/${model}" />
> <useSingleGlobalResourceSet value="false" />
> <modelSlot value="model"
> />
> </component>
>
> <!-- check model
> --> <component
> class="org.eclipse.xtend.check.CheckComponent">
> <metaModel id="mm"
>
> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
> <checkFile value="metamodel::table" />
> <emfAllChildrenSlot value="model"
> />
> </component>
>
> <!-- generate code
> --> <component
> class="org.eclipse.xpand2.Generator">
> <metaModel idRef="mm"/>
>
> <expand
> value="templates::TemplateProg::templateGeneral FOR model"
> /> <outlet path="${workspace-folder}"
> >
> </outlet>
> <globalVarDef name ="typeGeneration" value="'ALL'"
> />
> </component>
> </workflow>
>
>
> Template
>
> «IMPORT table»
> «IMPORT field»
>
> «EXTENSION templates::VariablesExtensions»
>
> «DEFINE templateGeneral FOR Table»
> «IF typeGeneration() == 'COB'»
> «EXPAND templateProg FOR this»
> «ELSEIF typeGeneration() == 'JCL'»
> «EXPAND templateJCL FOR this»
> «ELSEIF typeGeneration() == 'ALL'»
> «EXPAND templateProg FOR this»
> «EXPAND templateJCL FOR this»
> «ENDIF»
> «ENDDEFINE»
>
> «DEFINE templateProg FOR Table»
> «LET srcCobGen() + name +".cob" AS progName»
> «FILE progName»
> «EXPAND identDivision FOR this»
> «EXPAND envDivision FOR this»
> «EXPAND dataDivision FOR this»
> «EXPAND procDivision FOR this»
> «ENDFILE»
> «ENDLET»
> «ENDDEFINE»
>
> etc...
>
>
>
> Thanks a lot
>
>
>
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06985 seconds