Ok, here is the scenario.
If the selected product is “Product A”,
If the adult count is between 1 and 5
Then price should be 50 USD per person.
If adult count is between 6 and 10 the price
Then the price should be 600 USD per group
Now when the first time the product is booked for 5 adults, get the price 50
* 5 = 250 USD.
In between price rule has been modified ad following.
If the selected product is “Product A”,
If the adult count is between 1 and 5
Then price should be 40 USD per person.
If adult count is between 6 and 10 the price
Then the price should be 700 USD per group
When the next time the order is modified change the adult count and
If the adult count is increased from 5 to 8, it should re-calculate
the price to 600 USD as per previous rule.
Or
If the adult count is decreased from 5 to 3, it should re-calculate
the price to 3 * 50 = 150 USD
Thanks,
Riyaz
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-Decision-Table-tp2830218p2833582...
Sent from the Drools: User forum mailing list archive at
Nabble.com.