The Consent2Share (C2S) application uses JBoss Drools Guvnor as a user interface and a versioned repository for business rules of its Business Rule Management System (BRMS). Guvnor also offers a guided editor while creating/editing rules, versioning, and Quality Assurance (QA) support for testing and validating the changes to the business rules. The Document Segmentation Service (DSS) API uses the JBoss Drools Expert to run the business rules that are retrieved from the Guvnor instance with given arguments in a Document Segmentation request context. These rules and the execution result are used as Tagging Directives and they drive the Document Tagging phase of Document Segmentation Service.
Apache Tomcat 8 is the recommended application server to run this service.
Copy guvnor-5.5.0.Final.war
to webapps
folder of Tomcat, rename as guvnor.war
and start Tomcat.
- Open guvnor in web browser,
http://localhost:8080/guvnor
. - From the navigation panel, select
Administration
->Import Export
- Choose file repository_export.xml to import.
NOTE: After logging in the guvnor for the first time, if it asks you to install a sample repository, click “No thanks”.
docker build -t bhits/guvnor:5.5.0
NOTE: this docker image will actually contain the C2S Fact Model and initial business rules, so you won’t actually need to import the repository as mentioned in the “Import Consent2Share rules” section.
docker run --name guvnor -d bhits/guvnor:5.5.0
NOTE: In order for this API to fully function as a microservice in the Consent2Share application, it is required to setup the dependency microservices and support level infrastructure. Please refer to the Consent2Share Deployment Guide for instructions to setup the Consent2Share infrastructure.
When you start the guvnor image, you can edit the configuration of the guvnor instance by passing one or more environment variables on the command line.
This environment variable is used to setup JVM argument, such as memory configuration, logger configuration.
Example to setup memory configuration:
docker run --name guvnor -e JAVA_OPTS="-Xms512m -Xmx700m -Xss1m" -d bhits/guvnor:5.5.0
- View license information for the software contained in this image.
- The war file in this repository is downloaded from Guvnor release and credits go to drools.jboss.org
If you have any questions, comments, or concerns please see Consent2Share project site.
If you have any problems with or questions about this image, please contact us through a GitHub issue.