Skip to content

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

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

Activity

  1. abbasc52 commented on Jul 28, 2022

    @abbasc52

    Hi Mehran (@MehranDHN) based on your question, are you looking exclusive rules?
    something Like if... else if ?
    Do you need it to be that only one rule succeeds in any workflow?

  2. locked and limited conversation to collaborators on Sep 25, 2022
  3. converted this issue into a discussion #393 on Sep 25, 2022
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions