Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » invoking MWE2 workflows from a central MWE2 workflow(unable to invoke workflow containing modules from other MWE2 files)
icon8.gif  invoking MWE2 workflows from a central MWE2 workflow [message #1740863] Fri, 19 August 2016 08:16 Go to next message
Zakir Meer is currently offline Zakir MeerFriend
Messages: 50
Registered: February 2016
Member
Hello guys,

I have multiple MWE2 workflow files inside the same project, and I am trying to introduce a central MWE2 workflow file (just like main class in java) which is invoking other workflow files.

After reading documentation, I found that using below convention, modules from other workflow files can be invoked: Quote:
@<modulename>


Central MWE2 workflow file content:

module mainModule

Workflow {
   component=@moduleOne {}
}  


In this case moduleOne is defined in other MWE2 file

Unfortunately this doesn't seem to work and following exception is thrown :

0    [main] WARN  pes.access.impl.DeclaredTypeFactory  - --- xtext.common.types ---------------------------------------------------
1    [main] WARN  pes.access.impl.DeclaredTypeFactory  - ASM library is not available. Falling back to java.lang.reflect API.
1    [main] WARN  pes.access.impl.DeclaredTypeFactory  - Please note that no information about compile time constants is available.
1    [main] WARN  pes.access.impl.DeclaredTypeFactory  - It's recommended to use org.objectweb.asm 5.0.1 or better.
1    [main] WARN  pes.access.impl.DeclaredTypeFactory  - --------------------------------------------------------------------------
134  [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher  - [XtextLinkingDiagnostic: null:5 Couldn't resolve reference to Module 'one'.]
java.lang.IllegalStateException: [XtextLinkingDiagnostic: null:5 Couldn't resolve reference to Module 'one'.]
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:88)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)


I will be glad if someone can provide me a solution/hints to solve this issue.

For reference : I have attached the sample project which contains this scenario
Re: invoking MWE2 workflows from a central MWE2 workflow [message #1740874 is a reply to message #1740863] Fri, 19 August 2016 09:22 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13887
Registered: July 2009
Senior Member
you should put workflows into a source folder or use other means (e.g. use workflow as class folder) to have the second workflow on the classpath of the first one

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: invoking MWE2 workflows from a central MWE2 workflow [message #1740880 is a reply to message #1740874] Fri, 19 August 2016 10:12 Go to previous message
Zakir Meer is currently offline Zakir MeerFriend
Messages: 50
Registered: February 2016
Member
Thanks a lot Christian for your response !!

Problem is resolved - By moving workflows into the source folder Smile
Previous Topic:Unexpect abmbigious grammar
Next Topic:Two DSL in same project
Goto Forum:
  


Current Time: Tue Apr 20 11:46:03 GMT 2021

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

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

Back to the top