Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » first time problem running workflow (mwe 0.7.0)
first time problem running workflow (mwe 0.7.0) [message #621062] Tue, 30 June 2009 16:02
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Hi

I originally posted to the tmf newsgroup but I suspect I should have
posted here? I have been experimenting further and this post is updated

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. I get a message
'terminated' on top of the console window.

I am also seeing a lot of messages
"Could not acquire children from extension:
com.xx.dsl.yyy.diagram.resourceContent" in the error log but these don't
seem to timed with my test runs so I'm not sure if they are related.

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

<?xml version="1.0"?>
<workflow>
<property name="workspace_loc" value="./" />
<property name="eclipse_home" value="../" />
<property name="model"
value="${eclipse_home}/com.xx.yyy.ui/templates/default2.ngoss " />
<property name="src-gen" value="${eclipse_home}/com.xx.yyy.ui/src-gen"/>
<property name="out" value="out" />

<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
<platformUri value="../" />
<RegisterEcoreFile
value="${eclipse_home}/com.xx.yyy.ui/model/ngoss.ecore"/>
<RegisterEcoreFile
value="${eclipse_home}/com.xx.yyy.ui/model/contract.ecore"/ >
</bean>

<component class="org.eclipse.emf.mwe.utils.DirectoryCleaner"
directory="${eclipse_home}/com.xx.yyy.ui/src-gen"/>

<component class="org.eclipse.emf.mwe.utils.Reader">
<modelSlot value="model"/>
<uri value="${model}"/>
<firstElementOnly value="false" />
</component>

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


</workflow>


My test xpt file is in com.xx.yy.ui/templates/Demo.xpt

I have put a copy set of my model ecore files in com.xx.yy.ui/model/
(contract.ecore etc) and I have put a test copy of the GMF editor model
output default2.ngoss in /templates

(once I get this running manually I'll be using a call from java)


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

Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
------------------------------------------------------------ --------------------------
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: (c) 2005-2009 openarchitectureware.org and contributors
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
------------------------------------------------------------ --------------------------
Jun 30, 2009 4:20:37 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 30, 2009 4:20:37 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
setPlatformUri
INFO: Registering platform uri '/Users/steveorobec/DSL/eclipseRc4/workspace'
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
addRegisterEcoreFile
INFO: Adding dynamic EPackage 'http://www.xx.com/2008/ngoss' from
'..//com.bt.kalashnikov.ui/model/ngoss.ecore'
Jun 30, 2009 4:20:37 PM org.eclipse.emf.mwe.utils.StandaloneSetup
addRegisterEcoreFile
INFO: Adding dynamic EPackage 'http://www.xx.com/2008/contract' from
'..//com.xx.yyy.ui/model/contract.ecore'





I have the following dependencies in my manifest (belt & braces)
>
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.xpand;bundle-version="0.7.0",
org.eclipse.xtend;bundle-version="0.7.0",
org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
org.eclipse.xtend.check.ui;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.emf.ui;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.uml2;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.uml2.ui;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.xsd;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.xsd.ui;bundle-version="0.7.0",
org.eclipse.xtend.ui;bundle-version="0.7.0",
org.eclipse.xtend.util.stdlib;bundle-version="0.7.0",
org.eclipse.emf.mwe.activities;bundle-version="0.7.0",
org.eclipse.emf.mwe.ui;bundle-version="0.7.0",
org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="0.7.0"
>



I have looked at the OAW docs, source etc 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:[MWE] Some suggestions for MWE project
Next Topic:[EMF Compare] EPatch xtext editor
Goto Forum:
  


Current Time: Tue Apr 23 11:42:40 GMT 2024

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

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

Back to the top