Category:Drools

From Training Material
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