[XPand] Apply oaw to xpand project error [message #930173] |
Tue, 02 October 2012 00:39  |
Eclipse User |
|
|
|
Hi everyone,
I'm new to oAW and xpand, I'm trying to apply workflow to my xpand project, can you please to help me this issue?
Here is my xpand code:
«DEFINE main FOR ARRoot::BMD»
«FILE "Hello.h" -»
Number = «this.Example.parameter.value»
«ENDFILE»
«ENDDEFINE»
Here is my workflow:
<?xml version="1.0" encoding="utf-8"?>
<workflow>
<property name="baseDir" value="./"/>
<property name='src-gen' value="${baseDir}/gen" />
<!-- load model and store it in slot 'model' -->
<component class="org.openarchitectureware.xsd.XMLReader">
<uri value="./default.arxml"/>
<modelSlot value="EPC" />
<metaModel id="mm" class="org.openarchitectureware.xsd.XSDMetaModel">
<schemaFile value="${baseDir}/autosar_4-0-3.xsd"/>
</metaModel>
</component>
<component class="org.openarchitectureware.xpand2.Generator">
<metaModel idRef="mm" />
<expand value="src::mytemplate::main FOR EPC"/>
<outlet path="${src-gen}" >
<postprocessor class="org.openarchitectureware.xpand2.output.JavaBeautifier" />
</outlet>
</component>
</workflow>
My problem:
7218 INFO CompositeComponent - Generator: generating 'src::mytemplate::main FOR EPC' => .//gen
7410 ERROR AbstractExpressionsUsingWorkflowComponent - Error in Component of type org.openarchitectureware.xpand2.Generator:
EvaluationException : No Definition 'src::mytemplate::main for autosar403::Autosar' found!
[23,36] on line 1 'EXPAND src::mytemplate::main FOR EPC'
7410 ERROR WorkflowRunner - Workflow interrupted. Reason: EvaluationException : No Definition 'src::mytemplate::main for autosar403::Autosar' found!
[23,36] on line 1 'EXPAND src::mytemplate::main FOR EPC'
7411 ERROR WorkflowRunner - ERROR in Component of type org.openarchitectureware.xpand2.Generator
No Definition 'src::mytemplate::main for autosar403::Autosar' found! [EXPAND src::mytemplate::main FOR EPC] in workflow: Generator: generating 'src::mytemplate::main FOR EPC' => .//gen
I think my input at expand tab has problem, but I don't have any ideas to fix it. My model file has 2 parts:
+ BMD: template of parameters
+ EPC: value of parameters
Can you please give a brief direction with this problem?
Thank you
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: [XPand] Apply oaw to xpand project error [message #937674 is a reply to message #937629] |
Tue, 09 October 2012 03:00   |
Eclipse User |
|
|
|
Hi,
I need generate header .h, and need access parameters in my model, get its value and its name, ex: In my model haves 2 part BMD and EPC, BMD contains definition of 'parameter'(name; type int, enum, string..; range; description), EPC map and set value for it. This model is result when I create by AUTOSAR project in Artop
In my opinion, model is structure of some things insist of its definition and its value and xpand or acceleo is template that can access to these things and organize them follow the way we want(header file, html file ...). Do I misunderstand any important point?
Thanks
|
|
|
|
|
|
|
|