|
|
Re: call EOL module [message #1728964 is a reply to message #1727957] |
Fri, 08 April 2016 16:27 |
taghreed altamimi Messages: 184 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 #1728990 is a reply to message #1728988] |
Sat, 09 April 2016 01:36 |
taghreed altamimi Messages: 184 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 #1729039 is a reply to message #1729000] |
Sun, 10 April 2016 01:38 |
taghreed altamimi Messages: 184 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 |
taghreed altamimi Messages: 184 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 |
taghreed altamimi Messages: 184 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 #1729194 is a reply to message #1729190] |
Tue, 12 April 2016 03:33 |
taghreed altamimi Messages: 184 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 |
|
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 |
taghreed altamimi Messages: 184 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.05906 seconds