Forward and backward chaining in declarative networks
Hi:
There is such a mock question:
You have created a series of forms for a vacation booking process. Declarative expressions are used to calculate values such as the cost of the flight, hotel, car rental, and taxes. The last form includes a field that displays the total amount that will be charged on the user's credit card. How do you configure the calculations so that the total amount is calculated only when the user reaches the last form?
I know we should use backward chaining for the total amount. But for the other expressions like the cost of the flight, hotel etc. could you please explain according to what criteria should we determine whether it should be forward or backward chaining?
Thanks a lot!