Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture conditions which satisfies a rule #70

Open
dataeng-84 opened this issue Dec 21, 2021 · 0 comments
Open

Capture conditions which satisfies a rule #70

dataeng-84 opened this issue Dec 21, 2021 · 0 comments

Comments

@dataeng-84
Copy link

Hi Team

Is there a way to capture conditions that eventually made the rule true , e.g. for below rule

{ "conditions": { "any": [
{ "name": "current_inventory",
"operator": "less_than",
"value": 5,
},
]},
{ "all": [
{ "name": "current_month",
"operator": "equal_to",
"value": "December",
},
{ "name": "current_inventory",
"operator": "less_than",
"value": 20,
}
]},
},
"actions": [
{ "name": "order_more",
"params":{"number_to_order": 40},
},
],
}]

that output reason column can have value (current_inventory|current_month;current_inventory) if both of conditions where true
or just (current_month;current_inventory) if just 1 of them was true.
This will help to identify which conditions within a rule made the rule to be true or false on very large dataset for further analysis.
Please let us know if that is possible as it is our 1 of main use case now
Data Eng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant