Category:Drools

From Training Material
Revision as of 21:25, 30 August 2016 by Bernard Szlachta (talk | contribs) (→‎TODO:)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{#catlabel: pages | | }} {{#catlabel: nodivide}}

Drools Training Material



TODO:

  • if statement in condition (when) part (else statement)
  • fireUntilHalt()
  • colllSet collList (accumulate function)
  • CPE - more examples and exercies
  • Debugging - exercises
  • Planner (separate course???)
rule "apply 10% discount to all items over US$ 100,00 in an order"
when
$order : Order()
$item : OrderItem( value > 100 ) from $order.items
then
// apply discount to $item
end