Skip to content

Inclue RHS factResult after condition evaluation #279

Open
@antpingelli

Description

@antpingelli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions