Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » call EOL module (How can i call EOL module from .ETL file)
call EOL module [message #1727943] Tue, 29 March 2016 15:28 Go to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 180
Registered: October 2014
Senior Member
Hello,

I have an EOL module and I want to call it from (.etl) file before the transformation in the pre { } .

Is there any way to do that .

Thanks,
Taghreed
Re: call EOL module [message #1727957 is a reply to message #1727943] Tue, 29 March 2016 20:00 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1590
Registered: July 2009
Location: York, UK
Senior Member

Hi Taghreed,

The recommended way to do this would be to define an ANT workflow [1] and call your EOL program before your ETL transformation.

Cheers,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/workflow/
Re: call EOL module [message #1728964 is a reply to message #1727957] Fri, 08 April 2016 16:27 Go to previous messageGo to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 180
Registered: October 2014
Senior Member
Hello,
I have read the chapter in the book and the articles [1] but I couldn't do it ,is there any example shows how to create ANT workflow from scratch so I will be able to call EOL module and after that run my transformation ?

Thanks very much,
Taghreed.

[Updated on: Fri, 08 April 2016 16:29]

Report message to a moderator

Re: call EOL module [message #1728987 is a reply to message #1728964] Fri, 08 April 2016 23:49 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1590
Registered: July 2009
Location: York, UK
Senior Member

Hi Taghreed,

Does this help?

https://www.eclipse.org/epsilon/examples/index.php?example=org.eclipse.epsilon.examples.workflow.flowchart

Cheers,
Dimitris
Re: call EOL module [message #1728988 is a reply to message #1728987] Sat, 09 April 2016 00:06 Go to previous messageGo to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 180
Registered: October 2014
Senior Member
Thanks very much, yes it helps.
Re: call EOL module [message #1728990 is a reply to message #1728988] Sat, 09 April 2016 01:36 Go to previous messageGo to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 180
Registered: October 2014
Senior Member
Hello Dimitris,
I am able now to build ANT file but I am still facing a problem . I am using a model ( ModelOct13/CompletedModelNov24Ph1Ph2ActivityGraph.uml ) which I built using Papyrus so I am using Metamodel URI http://www.eclipse.org/uml2/5.0.0/UML
My question is what is the path for UML metamodel.

The following is The part that has a problem :
<project default="main">
<!-- Load our UML source model -->
<target name="loadModels">
<epsilon.emf.register file="org.eclipse.uml2.uml/model/UML.ecore" /> <!-- I don't know what to use here??? -->
<epsilon.emf.loadModel
name="UML"
read="true"
store="false"
metamodeluri="http://www.eclipse.org/uml2/5.0.0/UML"
modelfile="/ModelOct13/CompletedModelNov24Ph1Ph2ActivityGraph.uml"
/>
The error that I got is
C:\Users\tegotamimi\Desktop\eclipse-epsilon-1.2-win32-x86_64\workspace\TraceabilityExample\launchAlltask.xml:19: File C:\Users\tegotamimi\Desktop\eclipse-epsilon-1.2-win32-x86_64\workspace\TraceabilityExample\org.eclipse.uml2.uml\model\UML.ecore doesn't exist

Can you please help me .

Taghreed.

[Updated on: Sat, 09 April 2016 01:38]

Report message to a moderator

Re: call EOL module [message #1729000 is a reply to message #1728990] Sat, 09 April 2016 08:27 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1590
Registered: July 2009
Location: York, UK
Senior Member

Hi Taghreed,

You can omit the <emf.register .../> task as the UML metamodel is pre-registered.

Cheers,
Dimitris
Re: call EOL module [message #1729039 is a reply to message #1729000] Sun, 10 April 2016 01:38 Go to previous messageGo to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 180
Registered: October 2014
Senior Member
Hello,
I did that but I still facing some problems :
Internal error: java.io.FileNotFoundException: C:\ModelOct13\CompletedModelNov24Ph1Ph2ActivityGraph.uml [The system cannot find the path specified]

I have attached a minimal example ,can you please check and advise me.

Thanks very much.

Taghreed.

[Updated on: Sun, 10 April 2016 01:39]

Report message to a moderator

Re: call EOL module [message #1729078 is a reply to message #1729039] Mon, 11 April 2016 01:44 Go to previous messageGo to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 180
Registered: October 2014
Senior Member
Hello,
I have changed my ANT file .Now its seems that the ANT file can access my TraceabilityFeb3.etl file and starts executing the rules but I got error says
Epsilon.etl - TraceabilityFeb3.etl] EXCEPTION: Type 'UML!Model' not found ,I don't know why even though this rule is working properly when I run TraceabilityFeb3.etl

Can you please find the attached file and advise me .

Taghreed.

[Updated on: Mon, 11 April 2016 01:46]

Report message to a moderator

Re: call EOL module [message #1729084 is a reply to message #1729078] Mon, 11 April 2016 05:06 Go to previous messageGo to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 180
Registered: October 2014
Senior Member
Hello ,

Sorry for confusing you.
I fixed the whole errors and finally I am able now to build ANT successfully .I am giving initial value to( In Partition) attribute in control flow element in my source model (UML) using EOL and then run the ETL file .
But I cannot see the effect of executing EOL file and etl file when I execute ANT file even though when I execute them independently(without ANT) they are working fine .Do I have to include any commit command ???
By the way I initialize store to true.

Can you please help me.
Minimal example was attached.
Thanks,
Taghreed.

[Updated on: Mon, 11 April 2016 05:15]

Report message to a moderator

Re: call EOL module [message #1729187 is a reply to message #1729084] Mon, 11 April 2016 23:48 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1590
Registered: July 2009
Location: York, UK
Senior Member

Hi Taghreed,

You should set store="true" in your epsilon.emf.loadModel task.

Cheers,
Dimitris
Re: call EOL module [message #1729188 is a reply to message #1729187] Tue, 12 April 2016 00:07 Go to previous messageGo to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 180
Registered: October 2014
Senior Member
Yes I did that but I couldnot see the target file and also I checked the UML file the values didn't change.

Any new ideas.
Thanks
Taghreed.

[Updated on: Tue, 12 April 2016 00:11]

Report message to a moderator

Re: call EOL module [message #1729190 is a reply to message #1729188] Tue, 12 April 2016 01:08 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1590
Registered: July 2009
Location: York, UK
Senior Member

Hi Taghreed,

A minimal example [1] is then due I guess.

Cheers,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/articles/minimal-examples/
Re: call EOL module [message #1729194 is a reply to message #1729190] Tue, 12 April 2016 03:33 Go to previous messageGo to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 180
Registered: October 2014
Senior Member
Hello Dimitris,
The version of Epsilon that I am using 1.3.0.201509290942
Instructions for reproducing the problem:
Run /TraceabilityExample/Anttestlaunch.launch for ANT build file ( /TraceabilityExample/Anttestlaunch.xml)
Using ANT file I want to run EOL module to set up some values in the source file and then run the transformation (.etl)
Source model instance is /ModelOct13/CompletedModelNov24Ph1Ph2ActivityGraph.uml
Metamodel for target file is /lqnmodel/lqnmodel.ecore
/TraceabilityExample/AntwithoutTraceabilityApril11.etl to run the transformation
/ScriptingUMLXMLFile/ScriptingUMLXML.eol to set up InPartition attribute in the /ModelOct13/CompletedModelNov24Ph1Ph2ActivityGraph.uml

When I run ANT build file no target model generated and the values in CompletedModelNov24Ph1Ph2ActivityGraph.uml didn't change ,I think etl and EOL didn't run properly though the ANT file even though they run properly when I run them separately.

Thanks,
Taghreed.


[Updated on: Tue, 12 April 2016 03:38]

Report message to a moderator

Re: call EOL module [message #1729257 is a reply to message #1729194] Tue, 12 April 2016 12:57 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1590
Registered: July 2009
Location: York, UK
Senior Member

Hi Taghreed,

The modelFile of the lqnmodel does not seem to be correct. Replacing it with modelFile="targetlqn.model" seems to be producing a target model in your TraceabilityExample project. I found your example somewhat challenging to reproduce (e.g. I had to copy-paste your UML model from the ModelOct13 project, I couldn't find "ScriptingUMLXMLFile/ScriptingUMLXML.eol", and I have no idea what the "InPartition" attribute refers to in a 34KB model). Investing a bit more effort in producing a genuinely minimal example (including minimal sample models) contained within a single project would help a lot in the future.

Cheers,
Dimitris
Re: call EOL module [message #1729291 is a reply to message #1729257] Tue, 12 April 2016 15:25 Go to previous messageGo to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 180
Registered: October 2014
Senior Member
Hello Dimitris,

I have had to use lqnmodel because I am using it in my rules as <rightParameterType> and I got error when I changed that in ANT build file .I sent you a new minimal example which includes :
AntBuild folder which has
Metamodel folder has /TraceabilityExample/AntBuildfile/Metamodels/lqnmodel.ecore
Model folder has /TraceabilityExample/AntBuildfile/Models/CompletedModelNov24Ph1Ph2ActivityGraph.uml
/TraceabilityExample/AntBuildfile/Anttestlaunch.xml
/TraceabilityExample/AntBuildfile/TraceabilityExample Anttestlaunch.xml.launch
/TraceabilityExample/AntBuildfile/AntwithoutTraceabilityApril11.etl
/TraceabilityExample/AntBuildfile/ScriptingUMLXML.eol
targetmodel is an instance of the metamodel lqnmodel.ecore and it will be generated after running AntwithoutTraceabilityApril11.etl

Also I sent a word file which has a picture for In partition attribute that I need to give it a value .

Hopefully this will be more clear and sorry for confusing .
Taghreed.

[Updated on: Tue, 12 April 2016 15:36]

Report message to a moderator

Re: call EOL module [message #1729305 is a reply to message #1729291] Tue, 12 April 2016 18:13 Go to previous message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 180
Registered: October 2014
Senior Member
Hello ,
I have no problem no ,I figure out what was the problem .I had duplicate copies of the same file and also I had to check the box in the configuration to refresh the project:)

Sorry for that.

Thanks,
Taghreed.
Previous Topic:How to execute M2M transformation using ETL
Next Topic:Call Lazy Rule in ETL
Goto Forum:
  


Current Time: Tue Sep 25 20:46:42 GMT 2018

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

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

Back to the top