When publishing a model report, you can customize the elements that are reported on by using Object Constraint Language (OCL) in the report manifest file.
To create a new report with customized data elements:
<reportManifest name="Report Name" description="Text description of the report" author="Your name" xsltFile="resources/reports/MetricsReport.xsl" oclSelfType="Class" oclQuery="self.oclIsKindOf(Class)" outFileExt="pdf" USING_ICONS="false" EXTRACTING_DIAGRAMS="false" DIAGRAM_FORMAT="JPG" DETAIL_LEVEL="FULL"> </reportManifest>The oclSelfType and the oclQuery attributes, formatted in bold, define the data selection attributes. The oclSelfType attribute is the UML data type of the elements to select and the oclQuery attribute is the OCL query for refining the selection.
Parent topic: Publishing models
Related tasks
Publishing model reports
Viewing or printing the report
Canceling model publishing
Related information
Tutorials and sample for publishing models