Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

Qcadoo MES plugin is a ordinary Maven project.

Project structure

Please find attached file as a base of the new plugin. 

  • src/main/java/pluginpackage/
  • src/main/reosurces/locales/pluginidentifier_en.properties
  • src/main/reosurces/META-INF/css/pluginidentifier/
  • src/main/reosurces/META-INF/img/pluginidentifier/
  • src/main/reosurces/META-INF/js/pluginidentifier/
  • src/main/reosurces/META-INF/WEB-INF/jsp/pluginidentifier/
  • src/main/reosurces/context.xml
  • src/main/reosurces/model.xml
  • src/main/reosurces/view.xml
  • pom.xml

Plugin inner structure

There is a plugin inner structure on the picture below.

Plugin state flow

There is a plugin state flow on the picture below.


Plugin state transitions

*h6 Download

    • This operation download plugin jar file to the application tmp directory and create database record on the data in plugin descriptor with status "downloaded". After this operation jar views aren't active.

*h6 Remove

    • This operation remove plugin jar file from the application tmp directory and mark database record as "deleted". After this operation jar views aren't active.

*h6 Install

    • This operation move plugin jar file from the application tmp directory to the application context and change database record status to the "active". After this operation server is restarted. When server starts up plugin jar file is deployed. After this operation jar views are active.

*h6 Deactivate

    • This operation change database record status to the "installed". After this operation jar views aren't active.

*h6 Activate

    • This operation change database record status to the "active". After this operation jar views are active.

*h6 Uninstall

    • This operation remove plugin jar file and its deployed resources from the application context and mark database record as "deleted".
      After this operation server is restarted and jar views aren't active.

*h6 Update

    • This operation check the plugin version, if its version is lower than in plugin jar file, operation can update plugin. After this check old plugin jar file and its deployed resources are removed from the application context. New plugin jar is downloaded to the application context and database record version is changed to this from plugin jar file. Plugin status is exactly the same as before update. After this operation server is restarted. When server starts up plugin jar file is deployed. After deploy jar views are active.
  • No labels