Assessment Scope Definition Example
We will as an example create a scope that relates to an assessment of risks connected to entities. Assessment will be made by each entity manager in the context of his/her entity.
Creating a new query with parameter 
You must create a new query to obtain the list of risks connected to entities. You can name this query "Risks by Entity to be Assessed".
Code proposed for this query is as follows:
Select [Org-Unit] Into @org1 Where [Aggregation of] &"org"
Select [Org-Unit] Into @org2 Where [Aggregation of] Deeply in @org1
Select [Risk] Into @risk1 Where [Element at Risk]:[Org-Unit] &"org"
Select [Risk] Into @risk2 Where [Element at Risk]:[Org-Unit] in @org1
Select [Risk] Into @risk3 Where [Element at Risk]:[Org-Unit] in @org2
Select [Risk] From @risk1 Or @risk2 Or @risk3
In this example, the list of risks to be assessed is obtained from a query, parameter of which is the "org" root entity.
Creating the object collection to be assessed 
To create the list of objects to be assessed:
1. Open the properties of the assessment template.
2. In the Assessment Template Definition tab, select the Deployment Collection subtab.
3. Right-click the Deployment Template Collection folder and select New.
The Assessment Deployment Collection creation wizard opens.
4. Select the Objects to Assess check box.
5. Select the Query filling mode.
6. In the Query field, connect your query, for example "Risks by Entity to be Assessed".
7. Click OK.
*Similarly create the collection for respondents, and for contexts if required.
Creating an assessment query parameter 
To define the value that will be assigned to the "Org" parameter of your "Risks by Entity to be Assessed" query, you must create an Assessment Query Parameter.
To create an assessment query parameter:
1. Open the properties dialog box of the Assessment Deployment Collection.
2. Select the Characteristics tab, and in the Query, section Assessment Query Parameters, click New.
3. In the Query Parameter Name field, select the "Org" parameter.
4. In the Value Definition Mode field, select "Direct Value" and click OK.
5. In the properties of the query parameter, select the Text tab and enter the following comment for this parameter: "Select the root entity from which all risks will be assessed".
*This text is displayed by the assessment session creation wizard.
6. Click OK.
Creating a deployment query parameter value  
To define the value that will be assigned to the "Org" parameter of your "Risks by Entity to be Assessed" query, you must create a deployment query parameter value.
To create a deployment query parameter value:
1. Open the properties of the assessment query parameter.
2. In the Assessment Deployment Query Parameter Value section, click New.
The parameter value creation dialog box opens.
*For more details, see Managing parameter values.
3. In the Parameter Value Attribution Mode field, select "Generic Object".
4. In the Generic Object field, select a root entity of your repository.
5. Click OK.