From generated output how to execute another work flow [message #505017] |
Thu, 24 December 2009 14:05 |
|
Hi,
I want to execute three workflow file, they depend on the output files. here is the scenario:
workflow -1 ---> src-gen 1( file1, file 2. file 3, All) ---// upto here normal process, how to do the next steps
file 1 invokes ----> workflow 2 ---> src-gen2 ( requiredfile1)
file 2 invokes -----> workflow 3 ---> src-gen 3 ( requiredfile2)
file1+file2+file3 ( All) --> workflow for All files --> src-gen 4 ( combined result ( requiredfile1+requiredfile2)
any idea, how to proceed with this approach. If possible simple example will be appreciated.
Thanks in advance.
Pkojo
|
|
|
Re: From generated output how to execute another work flow [message #505078 is a reply to message #505017] |
Sat, 26 December 2009 08:58 |
|
One workflow can call another workflow by using
<workflow>
...
<cartridge file="otherWorkflow.mwe"/>
But I guess this is not what you meant. I'm not sure how you mean that file1 invokes workflow 2. As it is just generated text, it is not executable before compiling. You can invoke a workflow by calling the main() method of class WorkflowRunner, passing the workflow file as argument and having the right classpath.
HTH,
~Karsten
Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
|
|
|
Re: From generated output how to execute another work flow [message #505123 is a reply to message #505078] |
Sun, 27 December 2009 05:12 |
|
Thanks Karsten,
Let me clear what I mean by file1, file 2,,,,
suppose I have generated html files (file1. html, file2.html .....,) and
html files contain hyperlinks to execute another workflow file.
If I use cartridgefile to execute another workflow file it will give me all results ( generated output in one execution), I want some controlled output,
file1.html contains different hyperlinks, which are used for model to model transformation, for this I have to use xtend componenet which can only be invoked using workflowfile, like wise file2.html and so on.
What do u think, how it will work, or any other suggestion.
Best regards,
pkojo
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04626 seconds