Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext 2: problem with workflow
Xtext 2: problem with workflow [message #756601] Mon, 14 November 2011 13:41 Go to next message
Volker Wegert is currently offline Volker WegertFriend
Messages: 176
Registered: July 2009
Senior Member
Hello all,

I've got a set of Xtext 2 plugins with a new project wizard that
generates the default workflow:

....
Workflow {
component = @workflow.MyDSLGenerator auto-inject {}
}

The problem is that I get an error marker here: "Couldn't resolve
reference to Module 'workflow.MyDSLGenerator'.". I suppose I missed some
step along the way, but which one?

Thanks
Volker
Re: Xtext 2: problem with workflow [message #756622 is a reply to message #756601] Mon, 14 November 2011 14:26 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Sounds like a bug (please file a bugzilla).

The workflow should look like this:

component = org.eclipse.xtext.mwe.Reader {
// or define search scope explicitly
path = modelPath
// this class will be generated by the xtext generator
register = org.xtext.example.test.MyDslStandaloneSetup {}
loadResource = {
uri = "classpath:/model/Model.testdsl"
slot = "model"
}
}

component = org.eclipse.xtext.generator.GeneratorComponent {
register = org.xtext.example.test.MyDslStandaloneSetup {}
slot = 'model'
outlet = {
path = targetDir
}
}

Re: Xtext 2: problem with workflow [message #756805 is a reply to message #756622] Tue, 15 November 2011 08:14 Go to previous message
Volker Wegert is currently offline Volker WegertFriend
Messages: 176
Registered: July 2009
Senior Member
Sven,

okay, now I'm totally confused. The generator works (apparently called
by the builder) even if I delete the workflow entirely. If this is the
case, what would I need the workflow for?

Thanks
Volker
Previous Topic:Cannot override final binding bug in 2.2?
Next Topic:Help with Actions
Goto Forum:
  


Current Time: Tue Mar 31 08:32:20 GMT 2020

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

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

Back to the top