...
Facts
There is a fact named A customer made a get quote request
. Quotation
is used to capture the result of the rules execution.
Code Block | ||
---|---|---|
| ||
package samples.userguide;
package samples.quotation;
/**
* Customer fact
*/
public class Customer {
private String status;
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
}
package samples.quotation;
/**
* Quotation result
*/
public class Quotation {
private int price;
public int getPrice() {
return price;
}
public void setPrice(int price) {
this.price = price;
}
}
|
Rule Service Configuration (service.rsl)
...