Skip to content

How to feed engine multiple facts as array! #326

@nileio

Description

@nileio

Hi,
sorry it is a basic question but I have read the docs, and searched the Issues log. I am not sure why I could not find a way to feed the engine multiple facts at the same time. I tried an array of values, array of objects, etc.
My values are simple numbers , so ideally I should just simply pass them as an array. I expect the engine to run each item in the array as a separate fact and run the rules against them.
It works only if I have a for loop and run the engine on every iteration of the loop for a single value.

I am guessing there is a better efficient way than that. Can someone please provide an example ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions