kie-api introduction and use

Reference: KIE

kie widely used drools jbpm uberfire years, following several important components kie-api to do next in brief

maven dependence

<dependency>
<groupId>org.kie</groupId>
<artifactId>kie-api</artifactId>
<version>6.0.2.Final</version>
</dependency>

Several components

 

KieServices: Overall entrance kie, it can be used to create Container, resource, fileSystem etc.

KieContainer: KieContainer KieBase is a container, in particular can be obtained according to KieBase KieSession information described in kmodule.xml
KieBase: KieBase is a knowledge warehouse contains a number of rules, processes, methods, etc., you need to perform regular rules KieBase in class data of when in Drools mainly rules and methods, KieBase itself does not contain run words , you need to create KieSession according to KieBase
KieSession: KieSession is a session dealing with the Drools engine, based on KieBase created, it contains the runtime data, including "facts Fact", and the data is the fact that the rules run-time operation

KieModule: containing a plurality of containers kiebase defined. Generally expressed by kmodule.xml

KieModuleModel: is java kmodule.xml file indicates that, you can not add xml file but constructed by way of program code,
KieFileSystem: A complete file system, including the resources and organizational structure 

KieBuilder: When you add all the rules file to KieFileSystem by KieFileSystem to pass a KieBuilder, you can build a virtual file system. Which has a buildAll () method, will After building a virtual file system, automatically to build KieModule

KieRepository: is a KieModule warehouse contains all KieModule description, make a distinction with ReleaseId

KieResources: is a definition of how to get a factory resources, including url, classpath, filesystem, etc.

kiemodule.xml probably a look of something like xml:

<kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">
 <kbase name="rules" packages="rules">
 <ksession name="ksession-rules"/>
 </kbase>
 <kbase name="dtables" packages="dtables">
 <ksession name="ksession-dtables"/>
 </kbase>
 </kmodule>
kbase name: name uniquely identifies 
packages: the directory where the resource file
 ksession name: unique identification
Original Address: https:? //Www.cnblogs.com/yuebintse/p/5768052.html utm_source = itdadao & utm_medium = referral

Reference: KIE

kie widely used drools jbpm uberfire years, following several important components kie-api to do next in brief

maven dependence

<dependency>
<groupId>org.kie</groupId>
<artifactId>kie-api</artifactId>
<version>6.0.2.Final</version>
</dependency>

Several components

 

KieServices: Overall entrance kie, it can be used to create Container, resource, fileSystem etc.

KieContainer: KieContainer KieBase is a container, in particular can be obtained according to KieBase KieSession information described in kmodule.xml
KieBase: KieBase is a knowledge warehouse contains a number of rules, processes, methods, etc., you need to perform regular rules KieBase in class data of when in Drools mainly rules and methods, KieBase itself does not contain run words , you need to create KieSession according to KieBase
KieSession: KieSession is a session dealing with the Drools engine, based on KieBase created, it contains the runtime data, including "facts Fact", and the data is the fact that the rules run-time operation

KieModule: containing a plurality of containers kiebase defined. Generally expressed by kmodule.xml

KieModuleModel: is java kmodule.xml file indicates that, you can not add xml file but constructed by way of program code,
KieFileSystem: A complete file system, including the resources and organizational structure 

KieBuilder: When you add all the rules file to KieFileSystem by KieFileSystem to pass a KieBuilder, you can build a virtual file system. Which has a buildAll () method, will After building a virtual file system, automatically to build KieModule

KieRepository: is a KieModule warehouse contains all KieModule description, make a distinction with ReleaseId

KieResources: is a definition of how to get a factory resources, including url, classpath, filesystem, etc.

kiemodule.xml probably a look of something like xml:

<kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">
 <kbase name="rules" packages="rules">
 <ksession name="ksession-rules"/>
 </kbase>
 <kbase name="dtables" packages="dtables">
 <ksession name="ksession-dtables"/>
 </kbase>
 </kmodule>
kbase name: name uniquely identifies 
packages: the directory where the resource file
 ksession name: unique identification
Original Address: https:? //Www.cnblogs.com/yuebintse/p/5768052.html utm_source = itdadao & utm_medium = referral

Guess you like

Origin www.cnblogs.com/jpfss/p/12010591.html