Yes, I was just wondering if I could use a pattern binding variable
instead of a pattern. I guess I cannot. David
David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobi...@openroadsconsulting.com
web: http://openroadsconsulting.com
b
There's a minor problem with the syntax
On 19/02/2013, Stephen Masters wrote:
> Assuming that you don't have an infinite variety of accumulations you're
> trying to use, something I have done previously is to create DRL technical
> rule to generate accumulated values, which the DSL then uses as
>
Assuming that you don't have an infinite variety of accumulations you're trying
to use, something I have done previously is to create DRL technical rule to
generate accumulated values, which the DSL then uses as constraints.
i.e.
rule "Generate sensor counts"
when
$sensor : Sensor()
What (I think) you are trying to do is not possible.
But I wouldn't say that it cannot be done using DSL. What sort of
collect/accumulate do you need?
-W
On 18/02/2013, David R Robison wrote:
> I am developing rules using DSL so, from what I understand, I cannot use
> collect and accumulate in
I am developing rules using DSL so, from what I understand, I cannot use
collect and accumulate in some of my DSL definitions (especially when
using clauses that begin with a hyphen). So what I want to do is to test
the count of a pattern binding variable, such as
when
$sensors : Sensor()