NxBRE

Sample Rule Files

Flow Engine files

discount.bre

Discount rules in native syntax.

discount.xbre

Discount rules in extended syntax.

Usage:

Discount -l %1 -e %2 "C:/NxBRE/Rulefiles/discount.xbre"

where %1 is the log trace level (1-9) and %2 the error trace level (1-9)

login.xbre

Login rules in extended syntax.

Usage:

Login -l %1 -e %2 "C:/NxBRE/Rulefiles/login.xbre"

where %1 is the log trace level (1-9) and %2 the error trace level (1-9)

test.xbre

Regression tests file that demonstrates all the possible language constructs of the extended syntax.

Pseudocode (folder)

The files in this folder demonstrate the pseudo-code rendition of Flow Engine rule files in HTML (open frames.html to see the result).


Inference Engine – XML Schema Files

ruleml-0_86-datalog.xsd

RuleML 0.86 Datalog XML Schema.

ruleml-0_86-nafdatalog.xsd

RuleML 0.86 NafDatalog XML Schema

ruleml-0_9-nafdatalog.xsd

RuleML 0.9 NafDatalog XML Schema (recommended for the inference engine)

nxbre-file-registry.xsd

NxBRE Inference Engine Registry Configuration XML Schema


Inference Engine rule bases

Usage : Inference Engine Console.

discount.ruleml
discount-0_9.ruleml

Discount rules.

discount_lab.ruleml

Labeled discount rule.

discount.vdx

Discount rules in Visio 2003 DatadiagramML.

facts.ruleml

Rule base containing only typeless facts.

typed-facts-0_9.ruleml
typed-facts-0_86.ruleml

Rule base containing samples of typed facts. Syntax shown in version 0.9 must be preferred.

gedcom-relations-0_9.ruleml
gedcom-relations-0_86.ruleml

Family rules from the Genealogical Data Communication (GEDCOM) data model.

gedcom-relations.hrf

The GEDCOM rule base in Human Readable Format.

fire-alarm.ruleml

Fire Alarm Management system.

fire-alarm.vdx

Same in Visio 2003 DatadiagramML.

exams.ruleml

Graduation Management system.

exams-binderless.ruleml

Graduation Management system, which does not need a binder to execute.

chocolatebox.ruleml
chocolatebox.vdx

Chocolate Box Weight Calculation system.

chocolatebox-binderless.ruleml
chocolatebox-binderless.vdx

Chocolate Box Weight Calculation system, which does not need a binder to execute.

exams.vdx

Same in Visio 2003 DatadiagramML.

fraudcontrol.ruleml

Fraud control rules used for detecting potential suspicious transactions and customers.

Usage:

FraudControl %1 "C:\NxBRE\Rulefiles\fraudcontrol.ruleml"

where %1 is the number of tens of dummy customers data to create (advice: use 10 or more)

telco-rating.ruleml

Telecom call rating rules.

Usage:

Telco %1 "C:\My Documents\Development\NxBRE\Rulefiles\telco-rating.ruleml"

where %1 is the number of dozens of dummy calls data to create (advice: use 100 or more)

own_compact.ruleml
own.ruleml
own_expanded.ruleml

Object ownership rules demonstrating the three syntax models of RuleML 0.9.


Inference Engine - Test rule bases

test-0_86.ruleml
test-0_9.ruleml
test-0_91.ruleml
test.hrf
agenda-scheduler-test.ruleml

Regression tests files.

testbinder.ruleml

Test file for the binding mechanism.

endlessloop.ruleml

Test file for the maximum iteration limit parameter.

events-test.ruleml
testbinder-extra.ruleml
testbinder-extra.vdx

Test file for the engine's events support.

test-2_1.vdx
test-2_2.vdx
test-2_3.vdx
test-3_0.vdx

Test files for checking the features support of the Visio 2003 adapter throughout the different releases of NxBRE.


Inference Engine - Binder Files

exams.ruleml.ccb

On-the-fly compiled C# binder for the Graduation Management system.

Class name: org.nxbre.examples.ExamsBinder

exams.ruleml.xbre

Flow Engine binder for the Graduation Management system.

fraudcontrol.ruleml.xbre

Flow Engine binder for the fraud control system.

fraudcontrol.ruleml.ccb

Compiled C# binder for the fraud control system.

telco-rating.ruleml.ccb

Compiled C# binder for the telecom call rating system.

testbinder1.ruleml.xbre

Test file for the binding mechanism, demonstrating the BeforeAfter binding mode.

testbinder2.ruleml.xbre

Test file for the binding mechanism, demonstrating the Control binding mode.

testbinder3.ruleml.xbre testbinder4.ruleml.xbre

Test files for the binding mechanism, demonstrating that retraction in the After phase of a BeforeAfter binder restarts inference.

testbinder-extra.ruleml.ccb
testbinder-extra.ruleml.xbre

Test files for the binding mechanism, demonstrating extra features like additional string parameters in Compute method.

events-test.ruleml.ccb
events-test.ruleml.xbre
events-test.ruleml.vcb

Test files for the binding mechanism, demonstrating engine's events support.

chocolatebox.ruleml.ccb
chocolatebox.vdx.ccb
chocolatebox.ruleml.xbre

Compiled C# and Flow Engine binders for the Chocolate Box Weight Calculation system.


Inference Engine - Other Files

NxBRE-IE-3.vsx

Visio 2003 Stencil containing shapes for designing rule bases.

discount_spoiled.vdx

This file is a purposefully altered version of discount.vdx used for testing the realiability of the Visio adapter.

test-file-registry.xml

A test file demonstrating the usage of the file-based Inference Engine registry.