Moving Geneology to Drools 6.0


Drools Rules

This blog is an excerpt from the new Drools Training Course that I am currently writing for Skills421 (www.skills421.com)

::

I set myself the challenge today of moving the Geneology Project to Drools 6.0.

For anyone interested in following the parts before this check out

The Project So Far

The Project so far comprises the following key files:

  • pom.xml
  • RuleRunner
  • TestRuleRunner
  • Person
  • ExtendedDate
  • Ancestry1.drl
  • Ancestry1.1.drl
  • Ancestry2.drl
  • Ancestry3.drl

Changing the Code

Of the files already coded we will need to change the following files to work with Drools 6.0.

  • pom.xml
    Change the Drools Version
  • RuleRunner
    Change to use the new org.kie api
  • Ancestry2.drl
    Our ExtendedDate needs to be Cast Explicitly
  • Ancestry3.drl
    Our ExtendedDate needs to be Cast Explicitly

With…

View original post 521 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s