Skip to content

fact params is not working when I am using fact in evaluationDetails > currentValue #424

Description

@dlsemwal

I am using these params to create a rule. When rule is failing I want it to return currentValue by resolving fact documentsCount . Although It is resolving this fact documentsCount but not with the params which I passed. The params receiving params in fact fact resolver is {}.

{
            baseNumber: 1,
            evaluationDetails: {
                code: "RuleEventErrorCode",
                currentValue: {
                    fact: "documentsCount",
                    params: {
                      status: "approved",
                      hasPayments: true,
                      
                },
                },
                message: 'The documents number does not meet the requirements',
                targetValue: {
                    fact: "stdDocCount",
                },
            }
        };

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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