domingo, 4 de noviembre de 2012

Drools First Step


For this example use Eclipse Juno, Drools 5.4.0

  1. Install in Eclipse the drools plug-in 
    • Help -> Install new Software 
    • Typer in "Work with" http://download.jboss.org/drools/release/5.4.0.Final/org.drools.updatesite/.  That change according with the last version
    • Click Add
    • Type in "type filter text", Drools
    • Select the chechbox 
    • Click Finish
  2. Create the Drools Workspace 
    • File -> Properties 
    • Type "Drools" 
    • In the window left side -> Configure workspace setting -> Add 
    • Select from the uncompressed zip the folder \binaries, in my case "drools-distribution-5.4.0.Final\binaries"
    • Click Ok to accept the changes
  3. Create a Drools Project to verify
    • File -> New Project -> type "Drools"
  4. Create a Java class to invoke the rules
    • Implement KnowledgeBuilder to parse the DRL files
    • Implement KnowledgeBase to compare the object Vs rules
  5. Insert some object to evaluate the rules

No hay comentarios:

Publicar un comentario