As you can see what I do is take all the active rules with the sensor context.
And I use the RuleFinder so that it searches for the rule by the key and can assign it to a rule. With that I could already take his name, his tags etc.
But the problem is in the RuleFinder, which says that it is null.
I have tried without the Autowired annotation, with the annotation, putting @Component in this class. And it doesn’t work for me either.
The collection comes to me with information. Because I have tried to print the rules in this way rule.ruleKey().rule() and it prints all the rules in this way: S6295,S6294…
I have also seen that the ruleFinder is deprecated.
How could I then get the tags from the rules? Without making API calls.