CacheControl/json-rules-engine

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

Opened this issue · 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!