Thank you for your reply.The response from the above url is a text file which
contains DRL.(pricing.txt)
pricing.txt
package pricing
declare person
age: Integer
income: Integer
cpv: Integer
end
declare specification
databandwidth: Integer
smsusage: Integer
voiceusage: Integer
videousage: Integer
end
declare results
result: String
end
declare policy
policyid: Integer
end
rule "ageprice"
dialect "mvel"
when
person( age < 99 && > 1 )
r : results( )
then
r.setResult("199");
System.out.println("ageprice");
end
rule "incomeprice"
dialect "mvel"
when
person( income < 99999 && > 1 )
r : results( )
then
r.setResult("599");
System.out.println("income price");
end
rule "cpvprice"
dialect "mvel"
when
person( cpv < 6 && > 1 )
r : results( )
then
r.setResult("999");
System.out.println("cpv price");
end
rule "policy"
dialect "mvel"
when
policy( policyid == 101 )
then
System.out.println("policy filred");
end
--
View this message in context:
http://drools.46999.n3.nabble.com/unable-to-update-the-changes-guvnor-rul...
Sent from the Drools: User forum mailing list archive at
Nabble.com.