Replies: 1 comment
-
Hi @dtiwarATS, yes that should be achievable using fact comparison - see example. One approach would be to have a dynamic fact that represents the expression you posted, which would resolve the fact values in code and evaluate the expression. Additionally, you might also look at using fact params to provide a data structure describing the expression, which could then be parsed by the dynamic fact. This would avoid hard coding each expression within its own fact. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi There,
I have a use case where the value field has an expression like this:
{
"fact": "fact1",
"operator": "equal",
"value": "100 - {var1} - {var2} - {var2}"
}
Note:- Var1, Var2, etc are nothing but a fact.
Up to the best of my knowledge, I guess the facts comparison allows to compare only one fact with another but I was curious to know if there is a way to support the above conditions.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions