The file name is the scope name, encoded as a URL, with spaces replaced by %20 and an ".xml" suffix.
The following are two examples of predefined scopes:
The following is the content of the XML file for the predefined scope "All projects and related objects for a specified release":
<?xml version="1.0" encoding='ISO-8859-1'?>
<soadfscope version="1">
<predefined>TRUE</predefined>
<role></role>
<parameter>
<label>Release value</label>
</parameter>
<object></object>
<query>release='%1' and cvtype!='problem'</query>
<expansion_rule>Folder's tasks</expansion_rule>
<expansion_rule>Project's folders</expansion_rule>
<expansion_rule>Project's tasks</expansion_rule>
<expansion_rule>Task's objects</expansion_rule>
<exclusion_rule>Baseline projects used by other non-static projects
</exclusion_rule>
<exclusion_rule>Folders used by other projects</exclusion_rule>
<exclusion_rule>Objects associated with other non-automatic tasks
</exclusion_rule>
<exclusion_rule>Projects used by other baselines</exclusion_rule>
<exclusion_rule>Tasks used by other baselines</exclusion_rule>
<exclusion_rule>Tasks used by other folders</exclusion_rule>
<exclusion_rule>Tasks used by other projects</exclusion_rule>
<exclusion_query></exclusion_query>
<package_name>All projects and related objects for Release %1 saved
on %date</package_name>
</soadfscope>
First, the initial object list is created by querying for all objects that have a specified release.
The following is the content of the XML file for the predefined scope "Project hierarchy and related folders and tasks":
<?xml version="1.0" encoding='ISO-8859-1'?>
<soadfscope version="1">
<predefined>TRUE</predefined>
<role></role>
<parameter>
<label>Project objectname</label>
</parameter>
<object>%1</object>
<query></query>
<expansion_rule>Folder's non-automatic tasks</expansion_rule>
<expansion_rule>Project's folders</expansion_rule>
<expansion_rule>Project's non-automatic tasks</expansion_rule>
<expansion_rule>Project's recursive members</expansion_rule>
<exclusion_rule>Baseline projects used by other non-static projects
</exclusion_rule>
<exclusion_rule>Folders used by other projects</exclusion_rule>
<exclusion_rule>Objects associated with other non-automatic tasks
</exclusion_rule>
<exclusion_rule>Projects used by other baselines</exclusion_rule>
<exclusion_rule>Tasks used by other baselines</exclusion_rule>
<exclusion_rule>Tasks used by other folders</exclusion_rule>
<exclusion_rule>Tasks used by other projects</exclusion_rule>
<exclusion_query></exclusion_query>
<package_name>Project hierarchy %1 saved on %date</package_name>
</soadfscope>
First, the initial object list contains only the project specified by the object name.