Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Workflow for GMF editor model
Workflow for GMF editor model [message #54066] Mon, 29 June 2009 16:43 Go to next message
Eclipse UserFriend
Hi

Hopefully I'm posting to the correct group here.

I have created a GMF editor based on multiple linked ecore files and
my GMF editor creates a shared EMF-GMF editor domain in a single file.

I have set up an action to call a workflow from my GMF UI and it appears
to be configured correctly but doesn't actually produce anything. (ie
it's called from java using WorkFlowRunner().... The intention is to
call the workflow on my editor's model files which will be in their own
project directory.

As part of my testing I'm manually testing by running the workflow from
the project explorer (right click run as MWE). I have set up a runtime
config but when I run I get no errors and no output

this is my workflow is as follows (running on OS X 10.5.7)

<?xml version="1.0"?>
<workflow>
<property name="model"
value="platform:/resource/com.xx.yy.ui/templates/default2.ngoss " />
<!--basedir = /Users/steveorobec/DSL/eclipseRc4/workspace/Steve/. -->
<property name="out" value="out" />
<property name="workspace_loc" value="../." />


<!-- set up EMF for standalone execution -->
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
<platformUri value="../" />
<RegisterEcoreFile
value="${workspace_loc}/com.xx.yy.ui/model/contract.ecore"/ >
</bean>

<!-- load model and store it in slot 'model' -->
<component class="org.eclipse.emf.mwe.utils.Reader">
<uri value="${model}" />
<modelSlot value="model" />
<firstElementOnly value="false"/>
</component>

<!-- generate code -->
<component class="org.eclipse.xpand2.Generator" id="generate">
<metaModel id="mm"
class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
<expand value="templates::Demo::Main FOR model" />
<outlet path="${out}" />
</component>

</workflow>


My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
I have put a copy of my model ecore files in com.xx.yy.ui/model/
and I have put a copy of the GMF editor model output in /templates


When I run the workflow it gets as far as and stops

Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
------------------------------------------------------------ --------------------------
Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: (c) 2005-2009 openarchitectureware.org and contributors
Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
------------------------------------------------------------ --------------------------
Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: running workflow:
/Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.utils.StandaloneSetup
setPlatformUri
INFO: Registering platform uri '/Users/steveorobec/DSL/eclipseRc4/workspace'
Jun 29, 2009 9:28:27 PM org.eclipse.emf.mwe.utils.StandaloneSetup
addRegisterEcoreFile
INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract' from
'.././com.xx.yy.ui/model/contract.ecore'

I have the following in my manifest
>
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.ui,
org.eclipse.emf.codegen,
org.eclipse.ui.ide,
org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
org.eclipse.emf.mwe.core;bundle-version="0.7.0",
org.eclipse.xpand;bundle-version="0.7.0",
org.eclipse.xpand.ui;bundle-version="0.7.0",
org.eclipse.xtend;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
org.eclipse.emf.mwe.utils;bundle-version="0.7.0"
>
I have looked at the OAW docs plus the Eclipse GMF book, tried various
combinations of the above but am stuck. Any idea what I'm doing wrong
please?

regards
Steve
Re: Workflow for GMF editor model [message #54251 is a reply to message #54066] Tue, 30 June 2009 12:04 Go to previous message
Eclipse UserFriend
Hi

I've posted an update to the emft group as I suspect I should have tried
there instead

regards
Steve

Bill Hinge wrote:
> Hi
>
> Hopefully I'm posting to the correct group here.
>
> I have created a GMF editor based on multiple linked ecore files and
> my GMF editor creates a shared EMF-GMF editor domain in a single file.
>
> I have set up an action to call a workflow from my GMF UI and it appears
> to be configured correctly but doesn't actually produce anything. (ie
> it's called from java using WorkFlowRunner().... The intention is to
> call the workflow on my editor's model files which will be in their own
> project directory.
>
> As part of my testing I'm manually testing by running the workflow from
> the project explorer (right click run as MWE). I have set up a runtime
> config but when I run I get no errors and no output
>
> this is my workflow is as follows (running on OS X 10.5.7)
>
> <?xml version="1.0"?>
> <workflow>
> <property name="model"
> value="platform:/resource/com.xx.yy.ui/templates/default2.ngoss " />
> <!--basedir = /Users/steveorobec/DSL/eclipseRc4/workspace/Steve/. -->
> <property name="out" value="out" />
> <property name="workspace_loc" value="../." />
>
>
> <!-- set up EMF for standalone execution -->
> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
> <platformUri value="../" />
> <RegisterEcoreFile
> value="${workspace_loc}/com.xx.yy.ui/model/contract.ecore"/ >
> </bean>
>
> <!-- load model and store it in slot 'model' -->
> <component class="org.eclipse.emf.mwe.utils.Reader">
> <uri value="${model}" />
> <modelSlot value="model" />
> <firstElementOnly value="false"/>
> </component>
>
> <!-- generate code -->
> <component class="org.eclipse.xpand2.Generator" id="generate">
> <metaModel id="mm"
> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
> <expand value="templates::Demo::Main FOR model" />
> <outlet path="${out}" />
> </component>
>
> </workflow>
>
>
> My test xpt file is in com.xx.yy.ui/templates/Demo.xpt
> I have put a copy of my model ecore files in com.xx.yy.ui/model/
> and I have put a copy of the GMF editor model output in /templates
>
>
> When I run the workflow it gets as far as and stops
>
> Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
> Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: (c) 2005-2009 openarchitectureware.org and contributors
> Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: running workflow:
> /Users/steveorobec/DSL/eclipseRc4/workspace/com.xx.yyy.ui/te mplates/ngossTransformWorkflow.mwe
>
> Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> Jun 29, 2009 9:28:26 PM org.eclipse.emf.mwe.utils.StandaloneSetup
> setPlatformUri
> INFO: Registering platform uri
> '/Users/steveorobec/DSL/eclipseRc4/workspace'
> Jun 29, 2009 9:28:27 PM org.eclipse.emf.mwe.utils.StandaloneSetup
> addRegisterEcoreFile
> INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract' from
> '.././com.xx.yy.ui/model/contract.ecore'
>
> I have the following in my manifest
> >
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.core.resources,
> org.eclipse.ui,
> org.eclipse.emf.codegen,
> org.eclipse.ui.ide,
> org.eclipse.emf.ecore.xmi;bundle-version="2.4.0",
> org.eclipse.m2m.qvt.oml;bundle-version="1.0.0",
> org.eclipse.emf.mwe.core;bundle-version="0.7.0",
> org.eclipse.xpand;bundle-version="0.7.0",
> org.eclipse.xpand.ui;bundle-version="0.7.0",
> org.eclipse.xtend;bundle-version="0.7.0",
> org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
> org.eclipse.emf.mwe.utils;bundle-version="0.7.0"
> >
> I have looked at the OAW docs plus the Eclipse GMF book, tried various
> combinations of the above but am stuck. Any idea what I'm doing wrong
> please?
>
> regards
> Steve
Previous Topic:Can I create GPL + DSL by XTEXT
Next Topic:Xtext from Modelling package issues
Goto Forum:
  


Current Time: Wed May 07 23:38:18 EDT 2025

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

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

Back to the top