Rabobank-Archive / rule-engine

A rule engine supporting forward chaining
MIT License
47 stars 5 forks source link

Relax condition for subruns to allow returning less items than input provided #52

Closed jhkuperus closed 8 years ago

jhkuperus commented 8 years ago

Right now a SubRun is considered to have 'failed' when the result contains less items than the input list. This makes it impossible to use the subrun for smart/complex filtering of a list.

Initially it seemed like a good idea to keep lists at the same length, especially when performing operations on lists. However, allowing this filtering will increase the expressiveness of our DSLs.