Skip to content

Ability to pass parameters into the Rule variablesΒ #55

@sshegheva

Description

@sshegheva

Hi, I have been trying to evaluate business rules for a project that I am working on, and I can't figure out how to parametrize a rule:

For example, I want to trigger the rule if it matches a specific configuration. A product has category, and the category is books, and frequency is 1.

     { "name": "attribute_frequency",
        "operator": "less_than_or_equal_to",
        "value": {"key": "category", "value": "books", "max_frequency": 1},
      },

It is not possible to pass a more complex objects into the rule variables? Or pass parameters?

How do you address that?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions