Defining Deployment Query Parameters
You must specify deployment query parameters if the list of objects of the deployment collection is defined by a macro or query with parameters.
The deployment query parameter indicates to the HOPEX query how to find the value so that the HOPEX query can execute.
You must create a deployment query parameter for each of the HOPEX 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 a single parameter, it is not necessary to set correspondence. The first deployment query parameter found 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 tab.
3. In the Query field, create or connect a query.
*To connect a query, you can for example use the command List of available queries at the right of the field.
4. In the Assessment Query Parameter section, click the Create button.
5. In the Parameter Value Definition Mode field, select the mode of assigning one or several values to your parameter.
6. Click OK.
Direct value
The parameter value is specified at creation of an assessment session.
In the deployment query parameter creation dialog box, 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 the MetaClass is therefore recommended.
You can if required 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.
Refer parameter
The deployment query parameter references another parameter.
At execution, the parameter value is identical to that of the parameter defined in the Assessment Referred Query Parameter field.
Direct assessment
This value should be used in the context of direct assessment templates.
The deployment query parameter is not displayed.
Entering a deployment query parameter comment 
To guide the user, you can display a comment in the assessment session creation dialog box.
To specify a comment:
1. In the deployment query parameter properties dialog box, select the Texts tab.
2. Enter a comment, for example "Select root entity from which you want to assess risks".
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:
defined by the user
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 tab, in the Assessment Query Parameter Values section, click New.
3. In the creation dialog box, specify the Name of the parameter value.
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 explicitly indicate 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.
Accessing parameter values
To subsequently access the parameter values created:
*In the properties of an assessment template, select Assessment Template Definition > Parameter Values.