Re: [rules-users] Testing the count of a pattern binding variable

2013-02-19 Thread David R Robison
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

Re: [rules-users] Testing the count of a pattern binding variable

2013-02-19 Thread Wolfgang Laun
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 >

Re: [rules-users] Testing the count of a pattern binding variable

2013-02-19 Thread Stephen Masters
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()

Re: [rules-users] Testing the count of a pattern binding variable

2013-02-18 Thread Wolfgang Laun
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

[rules-users] Testing the count of a pattern binding variable

2013-02-18 Thread David R Robison
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()