IBM BPM, V8.0.1, All platforms > Programming IBM BPM > Business rule management programming > Examples > Additional Query Examples
Query business rule groups by multiple properties with a single NOT node
This is an example of a query of business rule groups by multiple properties with a single NOT node.
// Prop AND NOT Prop QueryNode rightNode = QueryNodeFactory.createPropertyQueryNode("department", QueryOperator.EQUAL, "accounting"); NotNode notNode = QueryNodeFactory.createNotNode(rightNode); QueryNode leftNode = QueryNodeFactory.createPropertyQueryNode("ID", QueryOperator.LIKE, "00000%"); AndNode andNode = QueryNodeFactory.createAndNode(leftNode, notNode); brgList = BusinessRuleManager.getBRGsByProperties(andNode, 0, 0); // Returns BRG2