Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [XPand] Apply oaw to xpand project error
[XPand] Apply oaw to xpand project error [message #930173] Tue, 02 October 2012 00:39 Go to previous message
Jack Vo is currently offline Jack Vo
Messages: 19
Registered: September 2012
Junior Member
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:(Xpand) How to access ecore.ecore via Xpand code
Next Topic:How to generate/modify c code from XML?
Goto Forum:
  


Current Time: Fri May 24 22:46:27 EDT 2013

Powered by FUDForum. Page generated in 0.07216 seconds