clara

http://www.clara-rules.org/
2018-05-31T13:06:11.000222Z

@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

2018-05-31T13:09:35.000067Z

@wparker I forgot that that was ever changed. I thought they still fire always even without a binding

2018-05-31T13:09:42.000554Z

I see what you are saying in the docs though

2018-05-31T13:16:23.000425Z

I can find it in the history later

2018-05-31T13:18:01.000528Z

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

2018-05-31T13:18:42.000170Z

It is a bit confusing.. but otherwise IMO you end up with bindings that don’t make much logical sense

2018-05-31T13:25:22.000551Z

Yep, thanks for clarifying

2018-05-31T17:24:08.000516Z

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

👍 1