[rules-users] Finding a sequence within the data
Greg Barton
greg_barton at yahoo.com
Thu Jul 31 00:54:45 EDT 2008
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
More information about the rules-users
mailing list