I have an Eclipse plug-in which generates code by invoking the WorkflowRunner. If I run my plug-in in a second Eclipse runtime (like you always do while still developing your plug-ins), the workflow works and code is generated. But, when I export my plug-in to use it inside a clear instance of Eclipse (with modeling tools), the workflow does not work.

I do not know what happens during workflow execution. I have tried to use 'executeWorkflow(new HashMap<String, String>(), issues)' method instead of 'run()', but issues does not contain nothing.

Now I am trying to catch the progress of the generation process and print it to the console, like it is done when executing "Run as" -> "MWE Workflow" directly on a workflow file. I use the code below these lines, but it does not print anything to the console.

the problem may be the location of the metamodel? The metamodel is inside another plug-in (Plug-in B). My plug-in (Plug-in A), requires it (B), but how I can know if (A) really finds metamodel inside (B)? If I put the ecore file with the metamodel inside plug-in A, I could delete the requirement in plugin.xml of plug-in A?