|
|
|
Re: [ETL] Standalone Java program: How to apply profiles? [message #1558312 is a reply to message #1558279] |
Sun, 11 January 2015 11:45 |
Alexander Fülleborn Messages: 132 Registered: April 2013 |
Senior Member |
|
|
Hi again Dimitris,
I tried to create a Profile as an usual InMemoryEmfModel and then to apply it in the ETL module. However, this does not work neither. I suppose that it is not recognized as a model of type Profile.
Here is how I created the profile model in my Java code:
profileFile = this.getFileInBundle("/res/"
+ "model.profile.uml");
profileModel = this.getUmlModel("Profile",
profileFile);
strProps = new StringProperties();
strProps.put(InMemoryEmfModel.PROPERTY_NAME,
"Profile");
strProps.put(InMemoryEmfModel.PROPERTY_ALIASES,
"Profile");
strProps.put(InMemoryEmfModel.PROPERTY_READONLOAD, true + "");
strProps.put(InMemoryEmfModel.PROPERTY_STOREONDISPOSAL, true + "");
profileModel.load(strProps, null);
And here the way I tried to apply this to my target model in the ETL module:
var profile := Profile!Profile.all.first();
("Applied profile of source model: " + profile).println();
tgtModel.applyprofile(profile);
The error message I receive is:
"Undefined variable, type or model: 'Profile!Profile' (D:\Eclipse\Workspace1\de.uni.due.swe.propman.propgen.pcm2pcptrafo\res\Pcm2PcpTrafo.etl@56:27)"
Maybe this analysis gives you an idea to find a solution.
Thanks a lot in advance and Kind regards, Alex
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03710 seconds