We are using the functionality to allow the LHS attribute to be compared to a RHS attribute (demonstrated in this example) but noticed that in the rule result, only the LHS factResult is included. Would it be possible to also include the RHS factResult? I am not too familiar with the code but it seems like the logic is contained below
|
.then(evaluationResult => { |
|
const passes = evaluationResult.result |
|
condition.factResult = evaluationResult.leftHandSideValue |
|
condition.result = passes |
|
return passes |
|
}) |
and a logic statement along the lines of
if (condition.value is an object) condition.value.factResult = evaluationResult.rightHandSideValue
could be added?
If there are no issues with this I am happy to open a PR
We are using the functionality to allow the LHS attribute to be compared to a RHS attribute (demonstrated in this example) but noticed that in the rule result, only the LHS factResult is included. Would it be possible to also include the RHS factResult? I am not too familiar with the code but it seems like the logic is contained below
json-rules-engine/src/rule.js
Lines 207 to 212 in 90272d6
and a logic statement along the lines of
if (condition.value is an object) condition.value.factResult = evaluationResult.rightHandSideValuecould be added?
If there are no issues with this I am happy to open a PR