Report designers can use Document Studio
to import data source schemas and build report templates.
Before you begin
Get familiar with the IBM Engineering Rhapsody(IBM Engineering Rhapsody) REST
service and the various URLs needed to extract data from Rhapsody when
you are using IBM Engineering Lifecycle Optimization - Publishing. See the
product documentation to locate the information for your version of Rhapsody.
About this task
Data is extracted by using the REST API. This interface is installed and
implemented with the data source application and works independently of IBM Engineering Lifecycle Optimization - Publishing (PUB). For
more information about the REST API for a data source, see the documentation for that data
source.
Procedure
- Review Designing document templates for an overview of
the template development process.
Start planning the structure of your document-style
report and the data that might be included.
For example, decide whether the final
document-style report will be generated from one template or from multiple template files that each
contain reusable pieces of content.
-
In Create a document template.
-
Add a data source schema to your document
template.
For Rhapsody, you
can complete the following steps:
-
In Document Studio,
click .
-
In the Predefined field, select Rhapsody.
-
In Type,
select the type of the schema from the list.
For Rhapsody, select
REST.
-
Edit the Schema field if needed or click
Browse to select the path for the schema file.
The base URL for Rhapsody is:
https://server:port/Rational/Rhapsody/.
Appended with ?metadata=schema, the URL is:
https://server:port/Rational/Rhapsody/?metadata=schema
The default location for the Rhapsody schema
is Rational_Rhapsody_HOME\RPE\Schemas. Example:
Rational_Rhapsody_HOME\RPE\Schemas\default.xsd
When choosing a schema from a model with profiles applied and new terms, make sure the model with
profiles and new terms are loaded in Rhapsody.
-
Select the Authentication Type from the
list.
If you do not select a type, each type is tested until the correct type is found, which might
increase document-style report generation time.
-
If the resource is on a secured server, specify the
Username.
-
If the resource is on a secured server, specify the
Password.
Note: You can specify the user password or the application password that is generated by the
configured third-party identity provider, such as SAML or OIDC. You must select
Basic authentication method while using application password.
-
Click Finish.
The data source schema you selected displays in the Data Source View.
- Add elements to the template.
The product includes a comprehensive set of template elements that you can use
to structure your document-style report. You can drag elements into the template content editor. For
example, you can add a Container element to hold several paragraphs. Each paragraph might be
controlled by a test condition that associates it only with specific data. For more information, see
Template elements in the Palette view and
Adding elements to a template.
- Use queries, attributes,
and variables to
add data to a template. These items specify which pieces of information
are generated in the report.
- Add formatting and styling to the
elements to control how they display in the output.
- Create filters to narrow the data that is pulled into the report.
You can use filters, which are detailed versions of the general data source
URI, to point to specific subsets of data so that Engineering Publishing ( PUB) does not try to retrieve more information than necessary from the data source during
report generation. These filters must be broad enough to retrieve all necessary data referenced by
the template or the generated report cannot include complete data.
- You can use a cast query filter to refine the results of
a query. The type casting feature works as an alternate filter for
data source elements, see Type casting for
details.
- Create sorts to organize the data in
your report.