Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

drools spring boot

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
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #drools #spring #boot
ADD COMMENT
Topic
Name
8+2 =