    

 ## On this page

  

 

 # BooleanSelectionRule

 Last update: 16.07.2026 

<a id="compolyx.BooleanSelectionRule"></a>

### *class* compolyx.BooleanSelectionRule(graph, obj, parent=None)

Represents a boolean selection rule.

### Attributes

NameDescription[`BooleanSelectionRule.active`](compolyx.BooleanSelectionRule.active.md#compolyx.BooleanSelectionRule.active)Active status of the object.[`BooleanSelectionRule.changed`](compolyx.BooleanSelectionRule.changed.md#compolyx.BooleanSelectionRule.changed)Triggers an observable to dispatch a change notification.[`BooleanSelectionRule.enabled`](compolyx.BooleanSelectionRule.enabled.md#compolyx.BooleanSelectionRule.enabled)Indicates whether the object is enabled.[`BooleanSelectionRule.extent`](compolyx.BooleanSelectionRule.extent.md#compolyx.BooleanSelectionRule.extent)Extent of the rule.[`BooleanSelectionRule.id`](compolyx.BooleanSelectionRule.id.md#compolyx.BooleanSelectionRule.id)ID of the object.[`BooleanSelectionRule.include_rule_type`](compolyx.BooleanSelectionRule.include_rule_type.md#compolyx.BooleanSelectionRule.include_rule_type)include type.[`BooleanSelectionRule.is_dict_item`](compolyx.BooleanSelectionRule.is_dict_item.md#compolyx.BooleanSelectionRule.is_dict_item)Indicates whether the object is an item in a dictionary.[`BooleanSelectionRule.is_list_item`](compolyx.BooleanSelectionRule.is_list_item.md#compolyx.BooleanSelectionRule.is_list_item)Indicates whether the object is an item of a list.[`BooleanSelectionRule.link_path`](compolyx.BooleanSelectionRule.link_path.md#compolyx.BooleanSelectionRule.link_path)Root path of the current node in the tree for links to this object.[`BooleanSelectionRule.name`](compolyx.BooleanSelectionRule.name.md#compolyx.BooleanSelectionRule.name)Name of the object.[`BooleanSelectionRule.parent`](compolyx.BooleanSelectionRule.parent.md#compolyx.BooleanSelectionRule.parent)Parent object in the tree.[`BooleanSelectionRule.relative_rule_type`](compolyx.BooleanSelectionRule.relative_rule_type.md#compolyx.BooleanSelectionRule.relative_rule_type)relative type.[`BooleanSelectionRule.root_path`](compolyx.BooleanSelectionRule.root_path.md#compolyx.BooleanSelectionRule.root_path)Root path of the current node in the tree.[`BooleanSelectionRule.selection_rules`](compolyx.BooleanSelectionRule.selection_rules.md#compolyx.BooleanSelectionRule.selection_rules)Element Selection Rule of the Boolean Selection Rule.[`BooleanSelectionRule.status`](compolyx.BooleanSelectionRule.status.md#compolyx.BooleanSelectionRule.status)Status of the object.[`BooleanSelectionRule.status_changed`](compolyx.BooleanSelectionRule.status_changed.md#compolyx.BooleanSelectionRule.status_changed)Boolean flag which is set to true in C++ when up-to-date status of object changes.[`BooleanSelectionRule.uid`](compolyx.BooleanSelectionRule.uid.md#compolyx.BooleanSelectionRule.uid)UID of the object.[`BooleanSelectionRule.vertex`](compolyx.BooleanSelectionRule.vertex.md#compolyx.BooleanSelectionRule.vertex)Raises an error if the object has been removed from the graph.### Methods

NameDescription[`BooleanSelectionRule.add_rule`](compolyx.BooleanSelectionRule.add_rule.md#compolyx.BooleanSelectionRule.add_rule)(rule\[, ...\])Add selection rule to boolean selection rule.[`BooleanSelectionRule.find_parent`](compolyx.BooleanSelectionRule.find_parent.md#compolyx.BooleanSelectionRule.find_parent)(type)Steps up the tree and returns the first parent with given type.[`BooleanSelectionRule.get_short_description`](compolyx.BooleanSelectionRule.get_short_description.md#compolyx.BooleanSelectionRule.get_short_description)()[`BooleanSelectionRule.obj_exists`](compolyx.BooleanSelectionRule.obj_exists.md#compolyx.BooleanSelectionRule.obj_exists)()Checks if \_\_obj still references the c++ object (has not been reset to None by self.\_delete) and exists in the graph.[`BooleanSelectionRule.serialize`](compolyx.BooleanSelectionRule.serialize.md#compolyx.BooleanSelectionRule.serialize)()Serialize to Python string.[`BooleanSelectionRule.serialize_name_and_id`](compolyx.BooleanSelectionRule.serialize_name_and_id.md#compolyx.BooleanSelectionRule.serialize_name_and_id)()Serializes the name and ID.[`BooleanSelectionRule.serialize_rule_types`](compolyx.BooleanSelectionRule.serialize_rule_types.md#compolyx.BooleanSelectionRule.serialize_rule_types)()[`BooleanSelectionRule.update`](compolyx.BooleanSelectionRule.update.md#compolyx.BooleanSelectionRule.update)()[`BooleanSelectionRule.visit`](compolyx.BooleanSelectionRule.visit.md#compolyx.BooleanSelectionRule.visit)(visitor)Walk through the tree and let the visitor perform action on every descendant node.