@dave.tenny perhaps your example created new bindings, in that case Clara’s accumulators won’t fire without facts even given an initial value. i.e. for [?result <- (acc/all) :from [Fact (= ?a a)]] if ?a isn’t created elsewhere you need facts to give ?a a meaning so the accumulator won’t fire without them. This is in the accumulator docs pages I posted before IIRC, I think there are some examples in the clara-examples project too
@wparker I forgot that that was ever changed. I thought they still fire always even without a binding
I see what you are saying in the docs though
I can find it in the history later
note that only applies if the binding in question is new though - if a previous condition creates it the accumulator will still fire with the initial value
It is a bit confusing.. but otherwise IMO you end up with bindings that don’t make much logical sense
Yep, thanks for clarifying
Looks like the work was done under https://github.com/cerner/clara-rules/issues/102 unfortunately the discussion there is less than simple to understand. PRs https://github.com/cerner/clara-rules/pull/204 https://github.com/cerner/clara-rules/pull/208 https://github.com/cerner/clara-rules/pull/210