[rules-users] semantically equivalent DROOLS L-value expressions?
Mark Proctor
mproctor at codehaus.org
Tue Oct 23 02:54:48 EDT 2012
He didn't say it was semantically incorrect, just that that they are different. 'or' between patterns results sub rule generation, in your case two rules. Where as '||' in a pattern is a standard expression evaluation. Have you tried running the rules, and ignoring the IDE? Some times the IDE can get a little confused.
Mark
On 22 Oct 2012, at 21:31, Cotton.Ben <ben.d.cotton.iii at gmail.com> wrote:
> Thanks.
>
> I'm sure that it is my lack of DROOLs maturity that leaves me kind of
> bewildered at the need to re-factor R2 as R2a and R2b. Frankly, I'm even
> a little confused as to why R1 is not syntactically correct (it would be my
> "newbie-preferred" way of expressing my understanding of what I want the
> rule to "say").
>
> Will play with and exercise your R2 re-factor recommendation, I'm willing to
> put in the DROOLs work until I "get it".
>
> Thanks again.
> Ben
>
> public class Message {
> private String businessDayConvention;
> private String _itemNumber;
> private String _clearingHouse;
> private String _productType;
> private String _currency;
> private String _upfrontFeeCurrency;
> private BigInteger _upfrontFeePaymentDate;
> private String _upfrontFeeSettlementConvention;
> private String _settlementConvention;
> private BigInteger _maturity;
> private BigDecimal _notional;
> private String _paymentFrequency;
> private BigInteger _rollDate;
> private String _calendar;
> private BigInteger _minimumEffectiveDate2Backload;
> private String _stubMinimumPeriod;
> private BigInteger _fixingRateDate;
> private String _initialStubRate;
>
> // rest is Eclipse generated gettr/settr methods
>
> }
>
>
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/semantically-equivalent-DROOLS-L-value-expressions-tp4020423p4020429.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
More information about the rules-users
mailing list