此内容没有您所选择的语言版本。
Chapter 5. Enabling executable rule models when upgrading to Red Hat Decision Manager 7.7
Beginning in Red Hat Decision Manager 7.7, rule assets are built from executable rule models by default with the standard kie-maven-plugin plugin. The executable model is a more efficient alternative to the standard asset packaging in previous versions of Red Hat Decision Manager.
When you install Red Hat Decision Manager 7.7, this default executable model behavior is configured for all new projects that you create going forward. However, if you are upgrading to Red Hat Decision Manager 7.7 from a previous version of the product and you have not already enabled executable rule models, you must add the required dependency to your existing Red Hat Decision Manager projects so that your rule assets are built from executable models in Red Hat Decision Manager 7.7. If you do not use the kie-maven-plugin plugin or if the required drools-model-compiler dependency is missing from your project, then rule assets are built without executable models.
For more information about executable rule models, see Packaging and deploying a Red Hat Decision Manager project.
Procedure
In the pom.xml file of your Maven project or on the relevant class path of your Java project, add the following dependency to enable rule assets to be built from the default executable model:
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-model-compiler</artifactId>
<version>${rhdm.version}</version>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-model-compiler</artifactId>
<version>${rhdm.version}</version>
</dependency>
This dependency compiles the executable model into Red Hat Decision Manager internal data structures so that it can be executed by the decision engine.
The <version> is the Maven artifact version for Red Hat Decision Manager currently used in your project (for example, 7.33.0.Final-redhat-00002).
Instead of specifying a Red Hat Decision Manager <version> for individual dependencies, consider adding the Red Hat Business Automation bill of materials (BOM) dependency to your project pom.xml file. The Red Hat Business Automation BOM applies to both Red Hat Decision Manager and Red Hat Process Automation Manager. When you add the BOM files, the correct versions of transitive dependencies from the provided Maven repositories are included in the project.
Example BOM dependency:
For more information about the Red Hat Business Automation BOM, see What is the mapping between RHDM product and maven library version?.