📜  流口水弹簧靴 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:19.777000             🧑  作者: Mango

代码示例1
global com.baeldung.spring.drools.model.Fare rideFare;
dialect  "mvel"

rule "Calculate Taxi Fare - Scenario 1"
    when
        taxiRideInstance:TaxiRide(isNightSurcharge == false && distanceInMile < 10);
    then
          rideFare.setNightSurcharge(0);
           rideFare.setRideFare(70);
end