Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
                                        Drools5 Community TrainingHands On DSL & Decision Tables          Sponsored by Plu...
Hands On 2: Drools Expert  DSL & Decision Tables   Drools5 Community Training     version: 1.0-SNAPSHOT    Release Date: 0...
Hands On 2: Drools Expert  DSL & Decision Tables Drools5 Community Training Course  by Mauricio "Salaboy" Salatino and  Es...
Decision Tables● Decision Tables Example   ○ Project: drools/04-DroolsExpert-Spreadsheet       ■ Test Class: SpreadsheetEx...
Decision Tables● Exercise 1   ○ Open SpreadsheetHandsOnLabsTest.java and     HandsOnLabsRules.drl   ○ Run the test and get...
Domain Specific Language● Domain Specific Languange Example:   ○ Project drools/05-DroolsExpert-DSLSimple      ■ Test Clas...
               Questions?
Enjoy! Questions and Feedback arealways appreciated!
                          Contact us atwww.plugtree.com
Upcoming SlideShare
Loading in …5
×

Drools5 Community Training HandsOn 2 DSL & Spreadsheets

2,518 views

Published on

for more information please visit: http://salaboy.wordpress.com/2011/02/23/drools-5-community-training-announced-roadmap/

Published in: Technology, Education
  • Be the first to comment

Drools5 Community Training HandsOn 2 DSL & Spreadsheets

  1. 1.     Drools5 Community TrainingHands On DSL & Decision Tables Sponsored by Plugtree
  2. 2. Hands On 2: Drools Expert DSL & Decision Tables Drools5 Community Training version: 1.0-SNAPSHOT Release Date: 09/05/2011Under The Creative Common License
  3. 3. Hands On 2: Drools Expert DSL & Decision Tables Drools5 Community Training Course by Mauricio "Salaboy" Salatino and Esteban Aliverti is licensed under a Creative Commons Attribution 3.0 Unported License.Based on a work at salaboy.wordpress. com. Permissions beyond the scope of this license may be available at http: //salaboy.wordpress.com/.
  4. 4. Decision Tables● Decision Tables Example ○ Project: drools/04-DroolsExpert-Spreadsheet ■ Test Class: SpreadsheetExampleTest.java ■ Rules: /rules/CreditRules.xls ■ Open the Spreadsheet and take a look at the structure ■ Take a look at the vanilla DRL generated by the compiler
  5. 5. Decision Tables● Exercise 1 ○ Open SpreadsheetHandsOnLabsTest.java and HandsOnLabsRules.drl ○ Run the test and get familiar with it ○ Replace HandsOnLabsRules.drl by a Decision Table in xls format!
  6. 6. Domain Specific Language● Domain Specific Languange Example: ○ Project drools/05-DroolsExpert-DSLSimple ■ Test Class: DSLExampleTest.java ■ Rules: /rules/CustomLanguage.dsl, /rules/Rules.dslr ■ Open the DSL file ■ Look at the mappings for conditions and consequences + the variables mappings ■ Open the DSLR file ■ Look how it uses the DSL sentences
  7. 7.    Questions?
  8. 8. Enjoy! Questions and Feedback arealways appreciated!
  9. 9.     Contact us atwww.plugtree.com

×