Category:Drools

From Training Material
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

{{#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