[rules-users] Finding a sequence within the data

Edson Tirelli tirelli at post.com
Thu Jul 31 08:26:44 EDT 2008


   Hehe, never underestimate creativity... :) nice solution.

   []s
   Edson

2008/7/31 Greg Barton <greg_barton at yahoo.com>

> Never underestimate the value of data structures.
> Give LabResult a pointer to the next (or previous)
> LabResult.  Then the rule becomes more comprehensible:
>
> $l1 : LabResult( value < 1, eval( inLastMonth(date) )
> $l2 : LabResult( value < 1, eval( inLastMonth(date),
> next == $l1 )
> $l3 : LabResult( value < 1, eval( inLastMonth(date),
> next == $l2 )
>
> It's also more easily extensible to longer sequences.
>
> GreG
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
Edson Tirelli
JBoss Drools Core Development
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/20080731/0229d8cc/attachment.html 


More information about the rules-users mailing list