MDWorkbench RCP application enables executing rulesets and services in a non-IDE environment.
MDWorkbench RCP application is to download directly from Sodius site:
MDWorkbench RCP application enables executing a launch configuration in headless mode (batch command line):
mdworkbench.exe -headless -nosplash --launcher.suppressErrors
-headless parameter asks MDWorkbench to run in headless mode.
-nosplash is an Eclipse built-in parameter to disable the splashscreen.
If you omit the
-nosplash parameter, the launch will be executed in headless mode but with a splashscreen displayed during the execution.
--launcher.suppressErrors parameter prevents Eclipse from opening a dialog popup in case an error occurs during the execution.
In headless mode, the launch configuration available in the
workspace directory will be executed.
If there is more than one available launch in this directory, or if you want to execute a launch located somewhere else in the file system,
you must add a
mdworkbench.exe -headless -nosplash --launcher.suppressErrors -launch C:\myWorkspace\myLaunch.launch
The evaluation directory is set in the launch configuration.
You can override the evaluation directory using a
mdworkbench.exe -headless -nosplash --launcher.suppressErrors -launch C:\myWorkspace\myLaunch.launch -evaluationDirectory c:\generated
The launch arguments (model connectors to use to read and write models,
String arguments, etc.)
are set in the launch configuration.
You can override some launch arguments using
mdworkbench.exe -headless -nosplash --launcher.suppressErrors -launch C:\myWorkspace\myLaunch.launch -args "XMI|c:\models\myModel.xmi" -args "Hello World" -args true
For a model connector, the value must of the form
Progress messages and errors are persisted in a
.log file, in the launch configuration directory.
If the execution fails, a dialog box is opened to warn the user and the exception details may be found in the
Using the launcher
mdworkbench.exe, the launch configuration is executed asynchronously from the command shell.
If you need to execute the program synchronously, you have to run the application using
eclipsec.exe -headless -nosplash --launcher.suppressErrors -launch C:\myWorkspace\myLaunch.launch
In that case, progress messages and errors are displayed in the command shell as well. If the execution fails, the exception is printed in the command shell and no dialog box is opened.
Running an MDWorkbench RCP application