[rules-users] Rules Design Question
Mark Proctor
mproctor at codehaus.org
Wed Apr 11 17:25:02 EDT 2007
I'm just finalising M2, doing lots of testing here, I think it may even
be more stable than 3.0.6 :) Deadline for final is now end of june.
Mark
Ronald R. DiFrango wrote:
> Is there a Milestone release that I can use now that contains this change?
>
> On 4/11/07, *Ronald R. DiFrango* <ron.difrango at gmail.com
> <mailto:ron.difrango at gmail.com>> wrote:
>
> What is the timeline for the new release as I might be able to
> migrate now prior to an official rollout of my product/project.
>
>
> On 4/11/07, *Mark Proctor* < mproctor at codehaus.org
> <mailto:mproctor at codehaus.org>> wrote:
>
> in trunk you can do:
> mdOutput : ModelDiscrepancyOutput( $amt1 : sumRTVQty,
> sumCmAndRnr != $amt1)
>
> So you'll have to wait till you upgrade to drop the eval.
>
> Mark
>
> Ronald R. DiFrango wrote:
>> Here is a question though now, I have the following:
>>
>> mdOutput : ModelDiscrepancyOutput( $amt1 : sumRTVQty, $amt2 :
>> sumCmAndRnr)
>> eval($amt1.doubleValue() != $amt2.doubleValue())
>>
>> Is there a way for me to eliminate the eval given that it
>> makes the rules engine sub-optimal? I guess one strategy is
>> to create two separate classes to house the results, but man
>> that seems messy.
>>
>> On 4/11/07, *Ronald R. DiFrango* <ron.difrango at gmail.com
>> <mailto:ron.difrango at gmail.com>> wrote:
>>
>> Michael,
>>
>> I got it working, but using Salience alone.
>>
>> Thanks!
>>
>> Ron
>>
>>
>> On 4/10/07, *Ronald R. DiFrango * <
>> ron.difrango at gmail.com <mailto:ron.difrango at gmail.com>>
>> wrote:
>>
>> Michael,
>>
>> OK, here is my attempt to convert the flow chart I
>> have into words:
>>
>> Step 1: Sum ObjectA
>> Step 2: Sum ObjectB
>> Step 3: Sum ObjectC
>> Step 4: Perform check on sum's from Steps 1,2 & 3 and
>> do something if it fails
>> Step 5: Perform an additional check on sum's from
>> Steps 1,2 & 3 and do something if it fails
>> Step 6: Perform an additional check on sum's from
>> Steps 1,2 & 3 and do something if it fails
>>
>> I literally need it in this order and I was thinking
>> that agenda groups along with salience could get me
>> there, but I have never used them before.
>>
>> Does that help?
>>
>> Ron
>>
>>
>> On 4/6/07, *Michael Rhoden* <
>> mrhoden at franklinamerican.com
>> <mailto:mrhoden at franklinamerican.com>> wrote:
>>
>> Please give a better example or some pseudo code
>> of what you are trying to do.
>>
>> -Michael
>>
>> ------------------------------------------------------------------------
>> *From:* rules-users-bounces at lists.jboss.org
>> <mailto:rules-users-bounces at lists.jboss.org>
>> [mailto:rules-users-bounces at lists.jboss.org
>> <mailto:rules-users-bounces at lists.jboss.org>] *On
>> Behalf Of *Ronald R. DiFrango
>> *Sent:* Friday, April 06, 2007 8:15 AM
>> *To:* Rules Users List
>> *Subject:* [rules-users] Rules Design Question
>>
>> All,
>>
>> I have a rules design question for the
>> community. I have 3 lists of different types of
>> objects that I need to sum if a certain attribute
>> is present on each one of them. Then after the
>> summing has taken place execute other rules based
>> upon the results of the summation.
>>
>> Is there a way that I can accomplish this via
>> salience or agenda groups?
>>
>> Thanks in advance,
>>
>> Ron
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> rules-users mailing list
>>
>>
>> rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>> <https://lists.jboss.org/mailman/listinfo/rules-users>
>>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20070411/992a0e34/attachment.html
More information about the rules-users
mailing list