For this example use Eclipse Juno, Drools 5.4.0
- 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
- 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
- Create a Drools Project to verify
- File -> New Project -> type "Drools"
- Create a Java class to invoke the rules
- Implement KnowledgeBuilder to parse the DRL files
- Implement KnowledgeBase to compare the object Vs rules
- Insert some object to evaluate the rules
No hay comentarios:
Publicar un comentario