A data source schema can be created for a Rational® DOORS® data
source. The data source schemas simplify authoring document templates
for modules with the same structure and similar attribute lists.
Procedure
- In the New DOORS Schema Wizard window,
click Next.
- Specify the connection details:
- Select a view:
- Database view
- Project view
- Click Next.
- Select the attribute type:
- Click Next.
-
- Click Next.
-
- Attribute name: Lists attributes available
in the selected baseline.
- Scope: Displays the scope of the attribute
as a module or an object.
- Elevation name: The elevated name of the
attribute is the name used in script expressions. A valid name is
generated from the Rational DOORS attribute
name to prevent entering an invalid value. An elevated attribute allows
direct access to that attribute value from a Module/Object context.
Non-elevated attribute values are available only from a Module/Object/Attribute context.
Select a check box to specify an attribute or Select
All to select all attributes. The Deselect
All clears all attributes. Click Next.
-
Note: An
elevation name of the column displays in the Elevation
Name column. You can elevate columns from any number of
views. You can elevate the attributes later while designing the template.
Attributes add declarative information to elements beyond the usual
predefined keywords. User-defined Rational DOORS attributes
are only accessible through the Attribute nodes in
the standard Rational DOORS schema
file. To use these attributes, the attribute values can be elevated as
XML attributes by using the XML schema discovery wizard. An attribute
might have a single occurrence, for example, Module Name,
and the Last Modified On property. Attributes might
apply to an object, but have multiple occurrences, such as the Object
Heading and Object Text.
-
- Select Schema Location: Click Browse to
select the location to save the data source schema.
- Data Source Schema ID: Enter
the ID for the data source schema. For example: DOORS
1.
- Optional: Select the Add Data
Source Schema to the current Template check box to add
this schema to the open template. Click Next.
- Save the schemas to reuse them in other templates without
running the Schema Discovery Wizard again.
Results
The schema is loaded in the Data Source Schemas view.
You can see the attributes and columns added to the Module/Object element.
What to do next
To reuse the schema:
- In Document Studio, click . The Add
Data Source Schema window opens. Click Next.
- In the Schema type field, select a schema
type.
- In the Schema file field, click Browse and
select a schema.
- In the Data Source ID field, enter a name
to display in the tab for the schema in the Data Source Schemas view.
- Click Next and Finish.