# Class CIM_QueryCondition
extends CIM_PolicyCondition

QueryCondition defines the criteria for generating a set of query results that are accessible to other QueryConditions or MethodActions of the same PolicyRule. If there are no results returned from the query, then the Condition evaluates to false; otherwise, true. QueryConditions are assumed to be constantly evaluated whenever precursor PolicyConditions are met. Actual implementations may evaluate conditions dynamically, via polling, or via other means. QueryCondition instances are viewed as clients of query. The QueryCondition implementation takes the query results and makes them available by the name specified in QueryResultName to the FROM clause in the Query property of other QueryConditions or MethodActions. (The details of how this is accomplished are implementation dependent.) These results are not available via CIM Operations, do not create lifecycle indications, and do not persist beyond a single evaluation of the associated PolicyRule.

### Table of Contents
Hierarchy
Direct Known Subclasses
Class Qualifiers
Class Properties
Class Methods

## Class Hierarchy

CIM_ManagedElement
|
+--CIM_Policy
|
+--CIM_PolicyCondition
|
+--CIM_QueryCondition

## Direct Known Subclasses

## Class Qualifiers

Name | Data Type | Value
--- | --- | ---

Description

string

QueryCondition defines the criteria for generating a set of query results that are accessible to other QueryConditions or MethodActions of the same PolicyRule. If there are no results returned from the query, then the Condition evaluates to false; otherwise, true. QueryConditions are assumed to be constantly evaluated whenever precursor PolicyConditions are met. Actual implementations may evaluate conditions dynamically, via polling, or via other means. QueryCondition instances are viewed as clients of query. The QueryCondition implementation takes the query results and makes them available by the name specified in QueryResultName to the FROM clause in the Query property of other QueryConditions or MethodActions. (The details of how this is accomplished are implementation dependent.) These results are not available via CIM Operations, do not create lifecycle indications, and do not persist beyond a single evaluation of the associated PolicyRule.

UMLPackagePath | string | CIM::Policy
Version | string | 2.22.0

## Class Properties

### Local Class Properties

Name | Data Type | Default Value | Qualifiers
--- | --- | --- | ---
Name | Data Type | Value
Query | string |
Description | string | A query expression that MAY be evaluated and that defines the query results that MAY be generated. Note that the query's FROM clause MAY reference any class, including those named by the QueryResultName of other QueryCondition instances associated to the same PolicyRule.
ModelCorrespondence | string | CIM_QueryCondition.QueryLanguage, CIM_QueryCondition.QueryResultName
Required | boolean | true
QueryLanguage | uint16 | 2

Description

string

The language in which the Query string is expressed./n CQL - refers to the 'DMTF:CQL' language defined by DSP0200. CQL: indicates a CIM Query Language string. CQLT: indicates a CIM Query Language Template string. When used, the identifiers recognized in the $identifier$ tokens are "SELF" and the property names of this class, or one of its subclasses. When used in the Query string, $SELF$ will be replaced by a string corresponding to a WBEM URI referencing the instance of this class that contains the Query template string. Tokens of the form $<propertyname>$ will be replaced by a string representing the corresponding property value of the instance of this class that contains the Query string.

ModelCorrespondence | string | CIM_QueryCondition.Query
Required | boolean | true
ValueMap | string | 2, 3, .., 0x8000..
Values | string | CQL, CQLT, DMTF Reserved, Vendor Reserved
QueryResultName | string |
Description | string | In the context of the associated PolicyRule, QueryResultName defines a unique alias for the query results that MAY be used in subsequent QueryConditions or MethodActions of the same PolicyRule. This string is treated as a class name, in a query statement.
ModelCorrespondence | string | CIM_QueryCondition.Query, CIM_MethodAction.Query
Required | boolean | true
Trigger | boolean | false
Description | string | If Trigger = true, and with the exception of any PolicyTimePeriodConditions, PolicyConditions of this Policy are not evaluated until this 'triggering' condition query is true. There MUST be no more than one QueryCondition with Trigger = true associated with a particular Policy.
Required | boolean | true

### Inherited Properties

Name | Data Type | Class Origin
--- | --- | ---
Caption | string | CIM_ManagedElement
CommonName | string | CIM_Policy
CreationClassName | string | CIM_PolicyCondition
Description | string | CIM_ManagedElement
ElementName | string | CIM_ManagedElement
InstanceID | string | CIM_ManagedElement
PolicyConditionName | string | CIM_PolicyCondition
PolicyRuleCreationClassName | string | CIM_PolicyCondition
PolicyRuleName | string | CIM_PolicyCondition
SystemCreationClassName | string | CIM_PolicyCondition
SystemName | string | CIM_PolicyCondition
PolicyKeywords | string[] | CIM_Policy

## Class Methods