>
> I tried this approach, but I get compilation errors for
tokens '-' and '+'
> I
> get similar errors for any arithmetic symbols (*, + or
-)
>
> What is the right way to add or subtract or multiply
with in "when"
> session?
I don't know why the example doesn't work. Try this:
rule "ITR Discard"
when
req : LowFareRequest(
$reqTime : requestedDeparture.time)
itr : AirItinerary( discarded == false )
flight : Flight(
departure.time <
($reqTime / 3600000 + 2),
departure.time >
($reqTime / 3600000 - 4))
then
System.out.println("discard true");
end
Christine
_______________________________________________
rules-users mailing list
rules-users lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
|