WARNING: This is archived. Please see openlmis-stockmanagement-validator-extension and docs.openlmis.org instead
This example is meant to show an OpenLMIS 3.x Example Extension Module at work.
- Docker 1.11+
- Fork/clone this repository from GitHub.
git clone https://github.com/weronika-ciecierska/openlmis-example-extension.git
- Fork/clone
openlmis-example
repository from GitHub.
git clone https://github.com/OpenLMIS/openlmis-example.git
- To assemble the outputs of project and create jar file run
docker-compose run builder
. - To be able to use extension module with
openlmis-example
put jar file frombuild/libs
toetc/openlmis/extensions
. - Edit configuration file
extensions.properties
from openlmis-example repository to use your defined extension. - Run
openlmis-example
and go tohttp://<yourDockerIPAdress>:8080/extensionPoint
to see that the extended implementation of OrderQuantity interface is used.
In the sample repository, the following classes are example of extensions usage:
- AmcOrderQuantity.java - class extending
OrderQuantity
interface fromopenlmis-example
repository withComponent
annotation that contains extension ID.
It is possible to change the path where the jar files and configuration file should be placed.
It is defined in docker-compose.yml
file of openlmis-example service:
volumes:
- '/etc/openlmis/extensions:/extensions'