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.
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:
...
The Knowledge Module must be described on the knowledgeModules.xml file as is described on the following snippet. The Maven coordinates must be defined on the XML packageId element separated by colon (:). For example the following snippet is pointing out to the Maven module defined by groupId: org.opencds, artifactId: my-knowledge-module, version: 1.0.0
...
You will need to use the following identifier in your DSS request:
Code Block |
---|
scopingEntityId: org.opencds
businessId: drools6-adapter
version:1.0.0 |
This is specified on DroolsKnowledgeLoader.java..
Code Block | ||
---|---|---|
| ||
...
<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:my-knowledge-module:1.0.0</packageId>
<preload>false</preload>
</package>
<primaryProcess/>
<timestamp>2014-10-13T22:02:06.621-06:00</timestamp>
<userId>salvador</userId>
</knowledgeModule>
... |