[rules-users] semantically equivalent DROOLS L-value expressions?
Wolfgang Laun
wolfgang.laun at gmail.com
Tue Oct 23 07:05:20 EDT 2012
Ben:
Consulting the "Expert" manual may shed some light on your puzzlement.
<quote>
The behavior of the Conditional Element or is different from the
connective || for constraints and restrictions in field constraints.
The engine actually has no understanding of the Conditional Element
or. Instead, via a number of different logic transformations, a rule
with or is rewritten as a number of subrules. This process ultimately
results in a rule that has a single or as the root node and one
subrule for each of its CEs. Each subrule can activate and fire like
any normal rule; there is no special behavior or interaction between
these subrules. - This can be most confusing to new rule authors.
</quote>
Ha! That there last sentence ;-)
-W
On 23/10/2012, 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