PLATFORM - Common Features > Assessments > Defining Assessment Templates > Defining Deployment Query Parameters
Defining Deployment Query Parameters
You must specify deployment query parameters if the list of objects of the deployment collection is defined by:
a macro
a macro with parameters
The deployment query parameter indicates to the HOPEX query how to find the value so that the query can execute.
You must create a deployment query parameter for each of query parameters used.
If the HOPEX query contains several parameters, you must also set correspondence between the deployment query parameter and the HOPEX query parameter.
*If the HOPEX query contains only one parameter, it is not necessary to set correspondence. The first deployment query parameter is taken into account.
Creating a Deployment Query Parameter
To create a query parameter associated with a deployment collection:
2. From the assessment template definition, open the properties of the deployment collection for which you want to create a parameter and select the Characteristics page.
3. In the Query field, create or connect a query.
*To connect a query, you can for example use the List of available queries menu at the right end of the field.
4. In the Assessment Query Parameter section, click the New button.
5. In the Parameter Value Definition Mode field, select the mode of assigning one or several values to your parameter.
Direct value
From deployment collection
Direct assessment
Direct value 
The parameter value is specified at creation of an assessment session.
In the deployment query parameter creation page, you must define:
the name of the desired parameter, for example "Org" in the Deployment Query Parameter field, or
the MetaClass concerned.
*If the query or the name of the query parameter is modified, correspondence between the deployment query parameter and the HOPEX query parameter is lost. Specification of a MetaClass is therefore recommended.
If required you can create a deployment query parameter value. For more details, see Defining a parameter value.
From deployment collection 
Parameter values are taken from a list of objects associated with a deployment collection.
You must define the deployment collection in the Referred Collection field.
Direct assessment 
This value should be used in the context of direct assessment assessment templates.
The deployment query parameter is not displayed.
Managing Parameter Values
If you want to specify candidate objects at assessment template level, you must create a parameter value and specify if this value is:
user defined
calculated by a macro
Defining a parameter value
When deployment query parameters have been defined, you can create candidate values for these parameters. These values are proposed by the assessment session creation wizard.
To define a parameter value associated with an assessment query parameter:
1. Open the properties of the assessment query parameter.
2. In the Characteristics page, in the Assessment Query Parameter Values section, click New.
3. Enter the parameter value Name.
4. In the Parameter Value Attribution Mode field, select:
Generic Object if the value is a repository object.
The Generic Object field allows you to specify a value that will be proposed to the user at creation of an assessment session.
*Select System Generic Object if the value is a system repository object.
Macro if the value is calculated by a macro.
The Implemented by Macro field allows you to determine the macro that will be used.
Value to indicate explicitly a Query Parameter Value.
5. Click OK.
The new parameter value appears in the list.
*You can define several parameter values for the same Assessment Query Parameter.