Create a Set via Free Definition


This pages describes how to create a new set via the Free definition node that will detect objects that you want to calibrate. The example below shows how to create sets via Types.

Example scenario:

  • Your code contains specific data functions (in this case SQL views) that are always named with _company as a suffix.
  • You want these SQL views to always be counted using a specific DET and RET value - in this case 30 (DET) and 5 (RET)
Example
  • Move to the Free definition node - in this example we are creating a Set to detect objects that will be classed as Data Entities, so we are working in the Free definition node under the parent Data Entities node:

  • In the right hand panel, right click in the left upper panel and select New Line:

  • A new Set will appear in the panel.
  • Edit the Description column to reflect what this Set will do, for example SQL View _company. Double click the field to invoke the text editor and make the change.
  • Enter the DET (Data Element Types) and RET (Record Element Types) values you would like the corresponding objects to use. In this example, we have set the DET to 30 and RET to 5. Double click the field to invoke the text editor. Note that a value of 0 is not authorised.

Note that DET and RET values are required when creating Entity sets and DET and Contribute values are required when creating End Point sets. See DET, RET, Contribute values for more information.

  • Now drag the Set into the Design window. The Set will appear as a box as shown below - you can move this box around if required:

  • In the Types & Properties panel, tick the Show only application types (only those object types currently stored in the Analysis Service will be displayed under the Types node).
  • Expand the types node and locate the Microsoft View object type:

  • Drag the Microsoft View type over to your Set displayed in the Design window. Drop the item on the Set:

  • You have now configured the Set to detect all Microsoft Views. Now add an additional criteria to filter on the names of the Microsoft Views.
  • Expand the Identification node in the Types & Properties panel
  • Drag the Name item over to the Set in the Design window:

  • At the same time the Properties dialog (see Working with block elements for more information) will be displayed enabling you to configure the string that needs to be searched:

  • The Identification radio will be pre-selected, as will the Name type in the Property list as shown above. We have chosen the Match operator to exactly match the string we require (when using Match you can enter Regular Expressions) and entered a simple value _company that will match all objects named with the _company suffix.
  • Click OK to confirm.
  • The Set is now complete:

  • You can check that your criteria detect the objects you require by right clicking the Set and selecting Generate set. A dialog box will be displayed listing all the objects that match the Set's criteria.
  • Finally, CAST recommends that you save any changes you have made (changes to existing sets, and the addition of new sets) using the File > Save menu option or the Save button on the Toolbar in order to avoid inconsistencies between the current configuration and function points results if you run a Compute action.
See Also

Set creation | Where should sets be created?


CAST Website