Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Drools 6.1 adapter allows you use a Knowledge Base (KB) build by the KIE workbench.  KIE introduces a new configuration and convention to build KBs using Maven.  A KIE project or module is simply a maven java project with an additional metadata file META/knowledge.xml.  The KB can be accessed by OpenCDS and by the KIE workbench as is described on the following figure. 

The Maven coordinates of the KB most be defined on KnowledgeModules.xml file, as described on the following snippet.

Code Block
languagexml
...
    <knowledgeModule>
	<identifier scopingEntityId="org.opencds" businessId="drools6-adapter" version="1.0.0"/>
	<status>APPROVED</status>
	<executionEngine>Drools 6.1 Adapter</executionEngine>
	<semanticSignifierId scopingEntityId="org.opencds.vmr" businessId="VMR" version="1.0"/>
	<package>
	    <packageType>MAVEN</packageType>
	    <packageId>org.opencds:drools6-adapter:1.0.0</packageId>
	    <preload>false</preload>
	</package>
	<primaryProcess/>
	<timestamp>2014-10-13T22:02:06.621-06:00</timestamp>
	<userId>salvador</userId>
    </knowledgeModule>
... 

 

In order to select a specific KB in you DSS request, you will need to use the Maven coordinates. For example, to select the maven module with the following coordinates:

...