[#BloombergLP-ball-AttributeContext-hasRelevantActiveRules] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/AttributeContext.adoc[AttributeContext]::hasRelevantActiveRules :relfileprefix: ../../../ :mrdocs: Return `true` if there is at least one rule defined for this process that is both "relevant" to the specified `category` and "active", and `false` otherwise. A rule is "relevant" to `category` if the rule's pattern matches `category‐>categoryName()`, and a rule is "active" if all the attributes defined for that rule are satisfied by the current thread's attributes (i.e., `Rule::evaluate` returns `true` for the collection of attributes maintained by this object). This method operates on the set of rules maintained by the category manager supplied to the `initialize` class method (which, in practice, should be the global set of rules for the process). The behavior is undefined unless `initialize` has previously been invoked without a subsequent call to `reset`, and `category` is contained in the registry maintained by the category manager supplied to `initialize`. == Synopsis Declared in `<ball_attributecontext.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool hasRelevantActiveRules(xref:BloombergLP/ball/Category.adoc[Category] const* category) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#