Skip to content

Question about making sure that rules in one workflow dosent violate each other. #376

@MehranDHN

Description

@MehranDHN

Suppose we have a Workflow with two rules but we want to make sure that rules in this workflow doesn't violate each other. Does it need an extra feature to validate all rules in one workflow against this requirement?

sample based on demo :

[
  {
    "WorkflowName": "LoyaltyFactorInIndia",
    "Rules": [
      {
        "RuleName": "LoayaltyFactorIs2",
        "SuccessEvent": "10",
        "ErrorMessage": "One or more adjust rules failed.",
        "ErrorType": "Error",
        "RuleExpressionType": "LambdaExpression",
        "Expression": "input1.country == \"india\" AND input1.loyaltyFactor = 2 "
      },
      {
        "RuleName": "LoayaltyFactorIs3",
        "SuccessEvent": "20",
        "ErrorMessage": "One or more adjust rules failed.",
        "ErrorType": "Error",
        "RuleExpressionType": "LambdaExpression",
        "Expression": "input1.country == \"india\" AND input1.loyaltyFactor = 3 "
      }
    ]
  }
]

Thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions