package org.xyz.rules;
unit RequestUnit
## imports
rule "DT1.Rule1" when
$s:/requests[approved == false]
$xcountry: XCountry(code == "SD") from $request.xcountries
$ycountry: YCountry(code == "SD") from $request.ycountries
then
modify( $s){ setApproved(true) };
end
......
.......
Drl2.drl
package org.xyz.rules;
unit RequestUnit
## imports
rule "DT2.Rule1" when
$s:/requests[approved == false]
$xcountry: XCountry(code == "SD") from $request.xcountries
$currency: Currency(code == "USD") from $request.currencies
then
modify( $s){ setApproved(true) };
end
......
.......
With these drl files, I want to generate a single REST endpoint that fire the rules on both the drl files and return approved true or false.
Could someone please help me with this?
Best Regards,
Amisha
Could someone please help me with this?
Best Regards,
Amisha