[rules-users] unable to update the changes (guvnor rules) to application using changeset

Esteban Aliverti esteban.aliverti at gmail.com
Fri Jan 13 03:19:13 EST 2012


Could you share the output log please?

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Fri, Jan 13, 2012 at 6:26 AM, srinivasasanda <srinivasasanda at gmail.com>wrote:

> 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-rules-to-application-using-changeset-tp3652824p3655822.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120113/26a60f06/attachment.html 


More information about the rules-users mailing list