Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Where did my matches go?
Where did my matches go? [message #588750] Tue, 04 May 2010 10:25
Eclipse UserFriend
Originally posted by: c.k.holmes.lboro.ac.uk

Hi,
I have an Ant workflow that compares two models using ECL returning the
resulting matchTrace object. The Ant workflow then runs a transformation
via ETL using the matchTrace structure, however the number of matches
reported in the 'post' section of the ECL script and the number reported
in the 'pre' section of the ETL script differ somewhat. Why is this?

<target name="A">
<epsilon.ecl src="${EclFile}" exportmatchtrace="matchTrace">
<model ref="${LeftModel}" as="Left"/>
<model ref="${RightModel}" as="Right"/>
</epsilon.ecl>
</target>

<target name="B">
<epsilon.loadModel name="${Document}" type="EMF">
<parameter name="modelFile" file="${DocModel}"/>
<parameter name="metamodelUri" value="${DocModelUri}"/>
<parameter name="readOnLoad" value="false"/>
<parameter name="storeOnDisposal" value="true"/>
</epsilon.loadModel>
<epsilon.etl src="${EtlFile}">
<model ref="${LeftModel}" as="MyModel"/>
<model ref="${Document}" as="Document"/>
<uses ref="matchTrace"/>
</epsilon.etl>
</target>


From ECL script:
<snip>
post {
'Match trace'.println();
('There are: ' + matchTrace.getMatches().size() + ' elements').println();
}
</snip>
Returns ==>
[epsilon.ecl - MyEclScript.ecl] Match trace
[epsilon.ecl - MyEclScript.ecl] There are: 372 elements

From ETL script:
<snip>
pre {
'Match Trace structure:'.println();
('There are: ' + matchTrace.getMatches().size() + ' elements').println();
</snip>
Returns ==>
[epsilon.etl - MyEtlScript.etl] Match Trace structure:
[epsilon.etl - MyEtlScript.etl] There are: 177 elements

What happened to the other 195 matches? Am I interfacing ECL and ETL
correctly?

Regards
Chris
Previous Topic:Error message from ETL following Epsilon upgrade
Next Topic:Where did my matches go?
Goto Forum:
  


Current Time: Thu Mar 28 13:54:31 GMT 2024

Powered by FUDForum. Page generated in 0.02702 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top