Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Workflow Engine configuration
Workflow Engine configuration [message #236407] Fri, 17 July 2009 21:17 Go to next message
RefuX Zanzeebarr is currently offline RefuX ZanzeebarrFriend
Messages: 51
Registered: July 2009
Member
Context: I'm working through the example in GMF eclipse series book.

There is an example in the book that lists a sample Worfklow file. This
sample has:
<component class="org.eclipse.xpand2.Generator">
<metaModel id="mm"
class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel " />
<expand value="pmw2csv::Main FOR model" />
<outlet path="${out}" />
</component>

Since in Eclipse 3.5 we're now using QVTO, is this correct? I 'm
thinking xtend isn't used any more?

I can't find any resources with samples for Workflow Engine
configurations for GMF 2.2. Any pointers much appreciated!
Re: Workflow Engine configuration [message #236907 is a reply to message #236407] Mon, 20 July 2009 14:09 Go to previous messageGo to next message
Richard Gronback is currently offline Richard GronbackFriend
Messages: 605
Registered: July 2009
Senior Member
The workflow engine was just re-incorporated into the DSL Toolkit
http://download.eclipse.org/modeling/amalgam/dsltk/downloads /drops/S20090703
-0844/index.php using Galileo bits. So, it should be possible to use the
workflow examples from the book in Galileo (though I've not tried it).
You'll have to ping the EMFT newsgroup to get updated advice on using MWE,
I'm afraid.

But yes, I'd suggest using Ant to produce workflows using QVTO and GMF's
Xtext tasks. The only examples I have are the Amalgam build scripts, e.g.
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.amalgam /releng/org.ecli
pse.amalgam.releng/generate.xml?root=Modeling_Project&vi ew=markup


On 7/17/09 5:17 PM, in article h3qpq1$or5$1@build.eclipse.org, "RefuX"
<refux@hotmail.com> wrote:

> Context: I'm working through the example in GMF eclipse series book.
>
> There is an example in the book that lists a sample Worfklow file. This
> sample has:
> <component class="org.eclipse.xpand2.Generator">
> <metaModel id="mm"
> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel " />
> <expand value="pmw2csv::Main FOR model" />
> <outlet path="${out}" />
> </component>
>
> Since in Eclipse 3.5 we're now using QVTO, is this correct? I 'm
> thinking xtend isn't used any more?
>
> I can't find any resources with samples for Workflow Engine
> configurations for GMF 2.2. Any pointers much appreciated!

--
Thanks,
Rich
Re: Workflow Engine configuration [message #236941 is a reply to message #236907] Mon, 20 July 2009 16:18 Go to previous messageGo to next message
RefuX Zanzeebarr is currently offline RefuX ZanzeebarrFriend
Messages: 51
Registered: July 2009
Member
Richard Gronback wrote:
> The workflow engine was just re-incorporated into the DSL Toolkit
> http://download.eclipse.org/modeling/amalgam/dsltk/downloads /drops/S20090703
> -0844/index.php using Galileo bits. So, it should be possible to use the
> workflow examples from the book in Galileo (though I've not tried it).
> You'll have to ping the EMFT newsgroup to get updated advice on using MWE,
> I'm afraid.
>
> But yes, I'd suggest using Ant to produce workflows using QVTO and GMF's
> Xtext tasks. The only examples I have are the Amalgam build scripts, e.g.
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.amalgam /releng/org.ecli
> pse.amalgam.releng/generate.xml?root=Modeling_Project&vi ew=markup

Well, I'm not sold on using the MWE, ANT is fine with me :)


Now I have this whole PackageNotFoundException I mention in my other
post. Oh well, it can't all be easy :) I will be studying you Amalgam
project to figure this one out as well I guess.

Note for others following in my footsteps:
1. Interestingly enough the eclipse.org/gmf/2008/xpand:template ant task
is not included in either the 3.5 DSLTK or the 3.5 Modelling Tools
releases. I had to download the standalone gmf xpand dist just to get
that plugin (org.eclipse.gmf.xpand.ant).
2. If ANT still complains it still can't find the above task, switch
your ANT JRE to the same as the workspace.

>
>
> On 7/17/09 5:17 PM, in article h3qpq1$or5$1@build.eclipse.org, "RefuX"
> <refux@hotmail.com> wrote:
>
>> Context: I'm working through the example in GMF eclipse series book.
>>
>> There is an example in the book that lists a sample Worfklow file. This
>> sample has:
>> <component class="org.eclipse.xpand2.Generator">
>> <metaModel id="mm"
>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel " />
>> <expand value="pmw2csv::Main FOR model" />
>> <outlet path="${out}" />
>> </component>
>>
>> Since in Eclipse 3.5 we're now using QVTO, is this correct? I 'm
>> thinking xtend isn't used any more?
>>
>> I can't find any resources with samples for Workflow Engine
>> configurations for GMF 2.2. Any pointers much appreciated!
>
Re: Workflow Engine configuration [message #236947 is a reply to message #236941] Mon, 20 July 2009 17:44 Go to previous messageGo to next message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
RefuX wrote:
> Richard Gronback wrote:
>> The workflow engine was just re-incorporated into the DSL Toolkit
>> http://download.eclipse.org/modeling/amalgam/dsltk/downloads /drops/S20090703
>>
>> -0844/index.php using Galileo bits. So, it should be possible to use the
>> workflow examples from the book in Galileo (though I've not tried it).
>> You'll have to ping the EMFT newsgroup to get updated advice on using
>> MWE,
>> I'm afraid.
>>
>> But yes, I'd suggest using Ant to produce workflows using QVTO and GMF's
>> Xtext tasks. The only examples I have are the Amalgam build scripts,
>> e.g.
>> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.amalgam /releng/org.ecli
>>
>> pse.amalgam.releng/generate.xml?root=Modeling_Project&vi ew=markup
>
> Well, I'm not sold on using the MWE, ANT is fine with me :)
>
>
> Now I have this whole PackageNotFoundException I mention in my other
> post. Oh well, it can't all be easy :) I will be studying you Amalgam
> project to figure this one out as well I guess.
>
> Note for others following in my footsteps:
> 1. Interestingly enough the eclipse.org/gmf/2008/xpand:template ant task
> is not included in either the 3.5 DSLTK or the 3.5 Modelling Tools
> releases. I had to download the standalone gmf xpand dist just to get
> that plugin (org.eclipse.gmf.xpand.ant).
> 2. If ANT still complains it still can't find the above task, switch
> your ANT JRE to the same as the workspace.
>
>>
>>
>> On 7/17/09 5:17 PM, in article h3qpq1$or5$1@build.eclipse.org, "RefuX"
>> <refux@hotmail.com> wrote:
>>
>>> Context: I'm working through the example in GMF eclipse series book.
>>>
>>> There is an example in the book that lists a sample Worfklow file. This
>>> sample has:
>>> <component class="org.eclipse.xpand2.Generator">
>>> <metaModel id="mm"
>>> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel " />
>>> <expand value="pmw2csv::Main FOR model" />
>>> <outlet path="${out}" />
>>> </component>
>>>
>>> Since in Eclipse 3.5 we're now using QVTO, is this correct? I 'm
>>> thinking xtend isn't used any more?
>>>
>>> I can't find any resources with samples for Workflow Engine
>>> configurations for GMF 2.2. Any pointers much appreciated!
>>

Hi

Just to let you know, I was in a similar position a few weeks back.
I posted a lot of my adventures on the emft group, I got the MWE method
working eventually on Amalgam after loading MWE & M2T.


Strangely, my plugin works on Amalgam, JEE, Birt, C++ versions of
Galileo after I configured them them with MWE & M2T myself.
But doesn't produce output on the Modeling version of Galileo
(ie version with pre-configured GMF, MWE, Xpand etc)

Plus if you are using OS X there are also some gotchas.

If I could just the pesky filterexpression for CNF working I would
be happy - last thing to do!

regards
Steve
Re: Workflow Engine configuration [message #236972 is a reply to message #236941] Mon, 20 July 2009 19:20 Go to previous messageGo to next message
Richard Gronback is currently offline Richard GronbackFriend
Messages: 605
Registered: July 2009
Senior Member
On 7/20/09 12:18 PM, in article h425c0$j87$1@build.eclipse.org, "RefuX"
<refux@hotmail.com> wrote:

> Well, I'm not sold on using the MWE, ANT is fine with me :)

Same here.

--
Thanks,
Rich
Re: Workflow Engine configuration [message #236996 is a reply to message #236972] Tue, 21 July 2009 02:32 Go to previous messageGo to next message
RefuX Zanzeebarr is currently offline RefuX ZanzeebarrFriend
Messages: 51
Registered: July 2009
Member
Richard Gronback wrote:
> On 7/20/09 12:18 PM, in article h425c0$j87$1@build.eclipse.org, "RefuX"
> <refux@hotmail.com> wrote:
>
>> Well, I'm not sold on using the MWE, ANT is fine with me :)
>
> Same here.
>

While running my generate.xml ant script I'm getting NPE on some emf
class, when I try to debug off the Ant script it will not stop on any
breakpoints, so I can't debug it :(

Any hints on why this is the case? I've debugged code launched form Ant
a bazillion times and this is a first.

p.s. If I click on 'Run Configurations' there is no listing of any Ant
targets, they only way I can get to it is via a right click on
generate.xml? odd!
Re: Workflow Engine configuration [message #237065 is a reply to message #236996] Tue, 21 July 2009 10:24 Go to previous messageGo to next message
Richard Gronback is currently offline Richard GronbackFriend
Messages: 605
Registered: July 2009
Senior Member
Try using 'External Tools Configuration' run option, and not 'Run
Configurations' to see the Ant targets.

Also, make sure under JRE tab you're using the 'Run in the same JRE as the
workspace' option.


On 7/20/09 10:32 PM, in article h439ca$uah$1@build.eclipse.org, "RefuX"
<refux@hotmail.com> wrote:

> Richard Gronback wrote:
>> On 7/20/09 12:18 PM, in article h425c0$j87$1@build.eclipse.org, "RefuX"
>> <refux@hotmail.com> wrote:
>>
>>> Well, I'm not sold on using the MWE, ANT is fine with me :)
>>
>> Same here.
>>
>
> While running my generate.xml ant script I'm getting NPE on some emf
> class, when I try to debug off the Ant script it will not stop on any
> breakpoints, so I can't debug it :(
>
> Any hints on why this is the case? I've debugged code launched form Ant
> a bazillion times and this is a first.
>
> p.s. If I click on 'Run Configurations' there is no listing of any Ant
> targets, they only way I can get to it is via a right click on
> generate.xml? odd!

--
Thanks,
Rich
Re: Workflow Engine configuration [message #237167 is a reply to message #237065] Wed, 22 July 2009 03:58 Go to previous message
RefuX Zanzeebarr is currently offline RefuX ZanzeebarrFriend
Messages: 51
Registered: July 2009
Member
Richard Gronback wrote:
> Try using 'External Tools Configuration' run option, and not 'Run
> Configurations' to see the Ant targets.
>
> Also, make sure under JRE tab you're using the 'Run in the same JRE as the
> workspace' option.

Course turns out you can't do that if you are wanting to debug a Ant
Task itself.

Lucky for me this is a documented issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=24130#c6

Comment 6 did the trick for me:
>You cannot have two Eclipse sessions working on the same workspace at
>the same time. You can import an existing project from one workspace
to > another using
> File >Import> Existing Project into Workspace.
>I would try this:
>launch a run-time workbench launch configuration on a new workspace
>target
>point it to a new workspace.
>import your project(s) as outlined above.
>Run your Ant builds and debug your Ant tasks using the host Eclipse
>session.
Previous Topic:Color transition on canvas
Next Topic:Show Preferences window in RCP
Goto Forum:
  


Current Time: Fri Apr 19 20:40:24 GMT 2024

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

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

Back to the top