Skip to content

Abitlity to give description to an individual rule condition #250

@dbhat6

Description

@dbhat6

I'll be creating an application in which there will be hundreds of rules present within the engine and the entire application is running on an express server.

When I receive a fact through an API call, during its logging, I think it would be better to have a description of which rule condition failed so that logging and debugging would be much easier. Making it look something similar to this

{
          fact: "patient-profile",
          operator: "in",
          value: ["123123123", "987987987"],
          path: "$.patientRx.ndc",
          description: "Dummy NDC match",
}

Please let me know if there's already a way to get this done.

Versions:
Node: v14.3.0
JSON Rules Engine: 6.0.0

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