IBM BPM, V8.0.1, All platforms > Programming IBM BPM > Business rule management programming > Examples > Additional Query Examples
Query business rule groups by properties and wildcard (%) at the beginning and at the end of the value
This is an example of a query of business rule groups by properties and wildcard (%) at the beginning and at the end of the value.
// Query Prop AND Prop QueryNode leftNode = QueryNodeFactory.createPropertyQueryNode( "region", QueryOperator.LIKE, "%Region"); QueryNode rightNode = QueryNodeFactory.createPropertyQueryNode( "ID", QueryOperator.LIKE, "000005%"); QueryNode queryNode = QueryNodeFactory.createAndNode(leftNode, rightNode); brgList = BusinessRuleManager.getBRGsByProperties(queryNode, 0, 0); // Returns BRG1 and BRG3