json-rules-engine icon indicating copy to clipboard operation
json-rules-engine copied to clipboard

How to create multiple 'aggregate' facts on a 'parent' object calculated from child objects (composition)

Open markericson opened this issue 2 years ago • 0 comments

I have object(s) that will introduce facts that also have 'child' objects (composition). There will be multiple facts that are aggregate values on the parent that are calculated from the 'children.'

Typically these aggregate fact on the parent will follow one of the following patterns:

  • count of children matching a filter (or all)
  • sum of children matching a filter (or all)

I didn't see anything like that in the examples. It would be great if it could be added!

markericson avatar Dec 26 '23 17:12 markericson