[rules-users] Missing Values for a Dymanic Rule......

Edson Tirelli tirelli at post.com
Mon Mar 17 08:22:33 EDT 2008


    What do you mean by "when i supply values to the above Rule" ?
    If you provide a snippet of the code you are using to assert objects
into the working memory and/or the values of the objects you are asserting,
it may be easier to understand your problem.
    It also does not seem right to declare the ApplyRuleBean pattern twice
as you are doing.

    []s
    Edson

2008/3/17, Nikhil_dev <k.nikhil at verchaska.com>:
>
>
> rule  "Rule_decimal_1"
> dialect "mvel"
> when
>         $a : ApplyRuleBean()
>          m : ApplyRuleBean ( eval ( ( adultFare + childFare ) < 500 ) )
> then
>           $a.GrossFare = ( $a.NettPayable * 0.10 )
> end
>
> Consider the above Rule it has been dynamically generated.....
> when i supply values to the above Rule, proper calculated Gross Fare is
> given  as output
> if i dont provide any one of the variable values.... then no error is
> given
> from drool......
> the process gets terminated..... is there any ways to identify which
> values
> are not provided in the Rule....
> I hope my query is understood.... and waiting for reply...
>
>
> -----
> Regards,
> :working:Nikhil
>
> --
> View this message in context:
> http://www.nabble.com/Missing-Values-for-a-Dymanic-Rule......-tp16091335p16091335.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
  Edson Tirelli
  JBoss Drools Core Development
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080317/cf484056/attachment.html 


More information about the rules-users mailing list