Skip to content

Conditional Rules #84

Answered by abbasc52
larsontim12 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @larsontim12,
There is no direct feature currently to conditionally run rules.

Currently workflow define a set of Rules and you can execute a workflow by its name.
So if you could separate the Rules into multiple workflows, you could achieve the above ask

[{
 "WorkflowName": "CA",
  Rules:[
    Rule1,Rule2
  ]
},
{
"WorkflowName": "WA",
  Rules:[
    Rule2,Rule3
  ]
}
]

Then you could run Rulesengine with the appropriate workflow:

       var result = await re.ExecuteAllRulesAsync(input1.State, input1);

Let me know your thoughts on this

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by larsontim12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants