i have a requirement where there is a group of conditions that i have to evaluate on input data. and for each evaluation i have to capture trace data. so it will look like
Group 1
((input.attribute1 > {some fixedvalue} && input.attribute2.Contains("somefixedvalue")) || (input.attribute3 < 'someFixedvalue'))
finally for input i have to have detail trace to get what was input value and evaluated value and which condition exactly failed.
and there are multiple groups like these, with each group having multiple such conditions
presently for each Group of conditions I have created a Function and for each condition i have created a single if statements and capture the values inside if statement. But i have too many such groups and each group has too many such conditions. So i am thinking if there is any better way/pattern to implement this.
Aucun commentaire:
Enregistrer un commentaire