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