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:

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"/>

<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.etl src="${EtlFile}">
<model ref="${LeftModel}" as="MyModel"/>
<model ref="${Document}" as="Document"/>
<uses ref="matchTrace"/>

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

From ETL script:
pre {
'Match Trace structure:'.println();
('There are: ' + matchTrace.getMatches().size() + ' elements').println();
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

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

Current Time: Tue Jan 17 09:24:35 GMT 2017

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

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