FINALIZED : FULLY WORKING
TODO : DATA MANIPULATION
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
import Knowledgebase.Product
|
||||
|
||||
rule "Offer for Diamond"
|
||||
when
|
||||
productObject: Product(type=="diamond")
|
||||
then
|
||||
productObject.setDiscount(15);
|
||||
end
|
||||
rule "Offer for Gold"
|
||||
when
|
||||
productObject: Product(type=="gold")
|
||||
then
|
||||
productObject.setDiscount(25);
|
||||
end
|
Reference in New Issue
Block a user