[ETL] [Solved] - model output empty [message #1652220] |
Thu, 05 March 2015 19:27 |
Catherine C. Messages: 4 Registered: March 2015 |
Junior Member |
|
|
Hello !
I am starting to write a M2M transformation with ETL but I encounter some trouble. (It's the first time that i'm working with Espilon)
The execution is ok, i see what i expect with the .println() for my target model but at the end, it leave my output model empty :
<?xml version="1.0" encoding="ASCII"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi=""http"://www.omg.org/XMI"/>
And i set the "store on disposal" to true for the target model on the run config.
Here's my only rule for now (very basic) :
rule Abstract2Compliant
transform s : Abstract!Abstract
to t : Abstract!Compliant {
t.activity=s.activity.select(a|a.task.isDefined());
t.activity.println();
t.compliantWith=s.mustBeCompliantWith.first;
t.compliantWith.println();
}
And the console's output :
OrderedSet {Activity [name=activity1]}
Device [sizeX=20.0, sizeY=10.0, name=Name]
Any ideas? What am i doing wrong?
Thanks a lot in advance !
Cheers,
Catherine.
[Updated on: Wed, 11 March 2015 14:28] Report message to a moderator
|
|
|
|
|
Re: ETL - model output empty [message #1659114 is a reply to message #1656486] |
Sun, 08 March 2015 17:34 |
|
Hi Catherine,
Your transformation rule should read as follows:
rule AbstractProgram2Compliant
transform s : AbstractProgram!AbstractProgram
to t : CompliantProgram!CompliantProgram // Note: CompliantProgram!CompliantProgram instead of AbstractProgram!CompliantProgram
{...}
You're right - Flock does sound like a better fit for this use case.
Cheers,
Dimitris
|
|
|
|
Re: ETL - model output empty [message #1666036 is a reply to message #1666025] |
Wed, 11 March 2015 14:07 |
|
Hi Catherine,
In ETL, X!Y refers to the Y type of the model named X in the Models tab of the transformation's launch configuration. The stored launch configuration you shared (AbstractProgram.launch) includes two models named AbstractProgram and CompliantProgram, so CompliantProgram!CompliantProgram should work. Could you please try with a copy of the project you shared a few days ago and let me know if this still doesn't work for you?
Cheers,
Dimitris
|
|
|
|
Powered by
FUDForum. Page generated in 0.03234 seconds