Packaging as a service
An MDWorkbench project may be deployed as a service.
This enables your user to execute the project from Eclipse, directly from the Model editor for example,
through the use of wizards and without having to configure any launch configuration.
Here are the steps to deploy the project as a service:
- Convert the project to an Eclipse plug-in project:
- Select the project in the Project Explorer view.
- Right-click PDE Tools > Convert Project to Plug-in Projects...
- Click Finish in the conversion wizard.
- Update the project dependencies:
- Open the META-INF/MANIFEST.MF file in your project.
- Select the Dependencies tab in the opened editor.
- Click the Add... button in the Required Plug-ins section,
and add the following plugins:
org.eclipse.emf.ecore
com.sodius.mdw.core
com.sodius.mdw.platform.services
com.sodius.mdw.metamodel.xxx
, for each metamodel your project requires.
- You will probably need to force the recompilation of the project using the main menu Project > Clean...
- Add a service extension:
- Open the META-INF/MANIFEST.MF file in your project.
- Select the Extensions tab in the opened editor.
- Click the Add... button in the All Extensions section,
and select the extension point com.sodius.mdw.platform.services.service
- Add a ruleService extension,
and fill the necessary information as described in the service extension point.
- Deploy the plugin:
- Select the project in the Project Explorer view.
- Right-click Export and then Plug-in Development > Deployable plug-ins and fragments.
- Deploy the plugin into an MDWorkbench location (please refer to Eclipse Plug-in Development Environment Guide for more information).
Restarting this MDWorkbench, the new rule service should appear in the Services view.
Service
Running services
com.sodius.mdw.platform.services.service extension point