How to create and modify BIRT reports for BPMN models

Take advantage of this new feature in Rational Software Architect Version 8.0

Learn how to leverage Eclipse Business Intelligence and Reporting Tools (BIRT) to create reports on Business Process Modeling Notation (BPMN) models. This functionality is new as of IBM® Rational® Software Architect Version 8.0.

Michelle Crane (craneml@ca.ibm.com), Staff Software Developer, IBM China

Michelle CraneMichelle L. Crane has a PhD in computer science from Queen's University. Dr. Crane joined IBM in 2009 and is employed in maintaining and enhancing the BPMN Modeler component of the IBM Rational Software Architect solution.



28 September 2010

Also available in

Overview

Support for Business Process Modeling Notation (BPMN) was added to IBM® Rational® Software Architect Version 8.0. You can now produce reports of your BPMN models, using several built-in Eclipse Business Intelligence and Reporting Tools (BIRT) report designs. This tutorial demonstrates how to use the BIRT report designs to produce basic diagram and metrics reports of BPMN models. It also demonstrates how to modify the included designs to fine-tune reports to your specifications. The new BPMN data source and several useful XPath functions will also be covered. The instructions described in this tutorial pertain to Rational Software Architect 8.0 and later.


Prerequisites and setup

This article is based on the assumption that you have some knowledge of using Rational Software Architect to model BPMN diagrams, as well as some familiarity with BIRT reports.

Ensure that the following features have been included as part of your BPMN installation:

  • BPMN modeling
  • Architecture reporting (BPMN) with BIRT

Also ensure that you have access to two or more BPMN models, either in your current workspace or accessible in your file system.


Using built-in BPMN reports

Rational Software Architect v8.0 comes preloaded with two built-in report templates designed for BPMN models. These templates are accessible through the Report Configurations dialog window.

  1. In the Modeling Perspective, select Run > Report > Report Configurations from the menu. Alternatively, click the arrow beside the Launch As button on the toolbar and select Report Configurations, as Figure 1 shows.
Figure 1. The Launch As… toolbar drop-down menu
Expanded menu for Launch As button

In the Report Configurations dialog that appears, you can create, manage, and run various configurations.

  1. The left panel should show BIRT Report as a category. Select this category and click the New button to create a new report configuration. Optionally, rename the new configuration.
  2. Ensure that the Built-in radio button is selected, and click Browse to see the built-in BPMN report designs.

Figure 2 shows the Report Configurations dialog at this point.

Figure 2. The Report Configurations dialog view before browsing
Dialog with arrow pointing to Browse button

Figure 3 shows the two built-in reports for BPMN models.

Figure 3. Sample BPMN model reports
Dialog showing two built-in BPMN reports

Diagram report for a single model

  1. Select the BPMN Model Diagram Report from the list of built-in reports. This is a simple report design, showing the name of the model, the primary documentation of the model’s process and collaboration, and its diagram.

Back in the Report Configurations dialog, the Report Data > Data Sources pane now shows BPMN Data Source.

  1. Click that entry in the Data Sources pane.

When the Add button next to the Instance Models pane becomes enabled, click it and navigate to a single BPMN model.

  1. In the Load Resource dialog that appears, navigate to a BPMN model in the current workspace or in your file system. After you have selected a model, click OK.

As Figure 4 shows, the Report Configurations dialog now shows the name of the selected model in the Instance Models pane.

Figure 4. The Instance model has been set
Report Data portion of Report Configurations

BIRT reporting in Rational Software Architect permits various output formats, such as HTML and PDF.

  1. For this example, leave the default Report Output, HTML.
  2. By default, the report is generated in a temporary directory, but you have the option to change it to whatever location you prefer. To change the location of the report output, use the Workspace or File System buttons in the Report Output portion of the dialog, as Figure 5 shows.
Figure 5. Changing the report output location
Report Output portion of Report Configurations
  1. To create the new report, click Apply and then Report.

The report will be generated and saved in the location that you specified earlier. In addition, it will open in the default reader for that particular output. In this instance, your default browser will show the new HTML report.

Depending on your browser and the BPMN model that you used to generate the report, the new report will look something like Figure 6.

Figure 6 Sample HTML report
HTML report in browser

Diagram report for multiple models

In the previous figure, notice that the title of the report indicates the name of the single model used in the report. It is possible to associate a diagram report with multiple BPMN models by following these steps:

  1. Return to the Report Configurations dialog and create a new BIRT report. Name this one Multiple Models.
  2. Using the Browse button, browse to the BPMN Model Diagram Report again.
  3. Select the BPMN Data Source line in the Data Sources pane and use the Add button to add the same instance model used in the previous configuration.
  4. Now, use the Add button again to add a second BPMN instance model. Remember that the models can be in the same workspace or anywhere in your file system.
  5. Rather than creating the default HTML report, change the format of the report to Adobe® Acrobat® PDF® format.
  6. (Optional) Change the location of the report to make it easier to find later.
  7. Click Apply.

After the new report configuration is saved, the configuration details should look similar to Figure 7.

Figure 7. The Report Configuration dialog for multiple models report
Details of the Multiple Models report
  1. Click the Report button to generate the PDF version of the report. The new report should open in your default PDF reader and should look something like Figure 8.
Figure 8. PDF report with multiple models
Preview of the PDF

Notice that the title of the report indicates the names of both models used in the report.

Metrics report for a single model

One of the report templates included in Rational Software Architect is a simple metrics report suitable for a single BPMN model.

  1. Return to the Report Configurations dialog and create a new BIRT report. Name this one Metrics Model.
  2. Using the Browse button, browse to the BPMN model Metrics report.
  3. Select the BPMN Data Source line in the Data Sources pane, and use the Add button to add a BPMN instance model to this report.
  4. Leave the format of the report as the default HTML, but change its location to something that you can find more easily, such as your current workspace.
  5. Click Apply to save the report configuration and then click Report to launch the report.

Depending on your browser and the BPMN model that you used to generate the report, the new report will look something like Figure 9.

Figure 9. Sample metrics report
Preview of metrics report, with pie chart

The included metrics report simply provides basic metrics about the associated BPMN model. The following sections are included:

  • Name and primary documentation of the model
  • Count and type of visible elements in the model (model elements that appear in the diagram, such as call activities, data objects, events, gateways, tasks, and flows)
  • Count and type of ‘invisible’ elements in the model (model elements that do not directly appear in the diagram, such as escalations, event definitions, interfaces, messages, or signals)
  • Summary metrics for tasks and global tasks, including the primary documentation of each (for example, business rule task, service task, user task)
  • Summary metrics for events, including the primary documentation of each (examples: start event, intermediate events, boundary events, end events)
  • List of all events and the event definitions associated with each
  • List of all interfaces and operations associated with each

The default metrics report will not meet your exact needs. Its purpose is to serve as a jumping-off point when creating customized BPMN reports, as discussed in the next section.


Customizing an existing BPMN report design

You can use the Report Design perspective, as well as the Report Explorer view, when customizing existing report designs or creating new ones.

  1. To switch to the Report Design perspective:
  2. From the menu, choose Window > Open Perspective > Other.
  3. If necessary, check the Show all check box.
  4. Select Report Design from the list, and click OK.

This perspective offers several views that are useful when editing report designs, such as the Data Explorer view.

  1. Open the Report Explorer view by selecting Window > Show View > Other.
  2. Navigate to the Reporting > Report Explorer view and click OK.

The Report Explorer view is prepopulated with several reports designed for BPMN models, as shown in Figure 10.

Figure 10. Report designs
Report Explorer view, showing BPMN report designs

Each report design is contained in a rptdesign file, the exact name of which is shown in parentheses after the name of the report. The "BPMN Model Diagram Report" and "BPMN Model Metrics Report" are the same report designs that are included as the built-in reports in the Report Configurations dialog. The third design, "Blank BPMN Model Report," contains data sets suitable for BPMN models but no specific layout.

Copying an existing report

To customize an existing report design, you must make a copy must and save it to your file system.

  1. Select the report to be customized from the list in the Report Explorer view. In this case, select the BPMN Model Diagram Report.
  2. Right-click and select Copy from the drop-down menu.
  3. Click the BPMN Model entry in the Report Explorer view, and select Paste from the right-click drop-down menu.

The Paste Report dialog that appears contains a name for the new report, copy_0_BPMN Model Diagram Report, as well as a description of the report. The description is copied from the source report.

  1. Modify the name and description as you choose. For instance, rename the report to My BPMN Diagram Report, and leave the description unchanged, as in Figure 11.
Figure 11. Naming the new report
Paste Report dialog showing new name of report
  1. Click Next.

The next page of the Paste Report wizard requires a location on your local file system where the report will be saved. When the page first appears, it shows an error: "The file cannot be saved in the specific location." This is because you have not yet chosen a location.

  1. Use the Browse button and navigate to a location in your file system.

The dialog is now updated with the exact path name for the report (and its associated properties file), as the example in Figure 12 shows.

Figure 12. Choosing a location for the new report
Dialog showing the path name of the new report
  1. Click Finish.

The new report will now be listed with the other BPMN report designs in the Report Explorer view, as shown in Figure 13.

Figure 13. New report listed in the Report Explorer
Report Explorer tab lists My BPMN Diagram Report

Note:
The properties file saved with the new report can be used for localization of your report. The properties file is automatically assigned as a resource for the new report.

  1. To start editing the new report (customizing your copy of the Blank BPMN Model Diagram report), double-click the new report in the Report Explorer view to open it.

Exploring the Report Explorer perspective

This article is based on the assumption that you have some basic knowledge of BIRT reporting. The Resources section lists several useful ways to learn more about how to use BIRT reporting. Here, we simply introduce those parts of the Report Explorer perspective that you can use for customizing your existing BPMN reports.

When you first open a report design, the main editor shows the layout of that design. For this example, it would look something like Figure 14.

Figure 14. Main editor window
Editor showing layout of new report

At the bottom of the main editor window, notice that there are several tabs, including Layout and Preview.

  1. Click the Preview tab. A preview of the current report will be generated. The report will be empty, except for the title, because you have not yet assigned an instance model to this report.
  2. The Report Explorer perspective includes the Property Editor view. Select that view to see the properties related to the current report design.

The General tab of the properties view includes information about the path of the current rptdesign file, as well as the display name. In addition, there is a layout preference near the bottom of that tab. Use this layout preference to choose between Auto Layout and Fixed Layout," (see Figure 15).

Figure 15. Layout preference radio buttons
Choice between Auto Layout or Fixed Layout

Tip:
The Auto Layout preference is selected by default and would normally be selected when the report design is finalized. However, you might have noticed that the preview just generated was very wide. During the process of customizing the report, we suggest that you switch to the Fixed Layout, because that will force the generated report to a more manageable width.

When the main editor window is in layout mode, the Data Explorer view is populated. It contains a list of the Data Sources and Data Sets used for the current report (see Figure 16).

Figure 16. Data Explorer view
Data tab with lists of data sources and data sets

The data source used for the current report design is a standard BPMN data source; however, it currently has no instance models associated with it. In order to make the preview of the report more meaningful, assign an instance model (from your local file system) to this data source:

  1. Right-click on the BPMN Data Source in the Data Explorer view.
  2. Select Editfrom the drop-down menu.
  3. Select the Models entry in the left panel and click the Add button.
  4. In the Load Resource dialog window, use the Browse File System (or Browse Workspace) button to navigate to an existing BPMN process model. (Ensure that the process model has elements on the diagram and that the process itself has at least two documentation elements associated with it.)
  5. Click OK.

Now the data source is associated with a BPMN model, and there will be contents to populate the data sets and the report preview mode.

To confirm this, click the Preview tab in the main editor window.

When the preview is generated, it should show the following:

  • A title
  • The name of the BPMN model
  • The first documentation element of the model
  • The diagram associated with that model.
  1. Return to the layout view by clicking the Layout tab of the main editor window.

The BPMN Model Diagram Report uses several data sets:

The Diagram data set
Used to extract the actual diagram from the BPMN model.
The Root Elements data set
Used to extract the documentation elements from the root elements. In this example, you are retrieving the documentation for the actual process in your BPMN model.
The Joint: Root Element Diagram data set
Used to create an intersection between the other two data sets, so that you can extract the diagram and the documentation associated with the model’s process.

You can explore these data sets by selecting them and choosing Edit from the drop-down menu. More information about BPMN data sets will be presented here later.

Adding a new element

The current report design displays only the first documentation element associated with the process or collaboration. However, it is possible that any process or collaboration has multiple documentation elements. You are going to modify the existing report design to include a second documentation element, below the first.

The report is laid out in a table, one column wide.

  1. Select the row containing the first documentation element by clicking slightly to the left of the [firstDoc] entry.

When the correct row is selected, the middle row (in this table) should be highlighted, as Figure 17 shows.

Figure 17. Selecting the [firstDoc] row
Click in the left margin to select the row
  1. After the correct row is highlighted, right-click and choose Insert > Row > Below. A new Detail Row is added to the table, directly below the [firstDoc] row.
  2. The [firstDoc] refers to the firstDoc column in the Root Elements data set. Right-click on that data set now and choose Edit.
  3. Navigate to the Column Mapping page.

Notice that the column query for the firstDoc column is documentation/@text. This column query will extract the default, or first, documentation element. However, the documentation element associated with BPMN elements is actually a collection, and it is possible to specify exactly which index to use.

Adding a new column mapping

You are going to add a new column to this data set, extracting the second documentation element.

  1. Still in the Column Mapping page, click Add new column here.
  2. Insert a name for the new column, such as secondDoc.
  3. Change the column query to documentation[2]/@text, and leave the type as String. To test the new column mapping, select the Preview Results page.

Assuming that the instance model associated with the data source has a second documentation element, it will appear in the secondDoc column of the appropriate line. See Figure 18 for an example.

Figure 18. Preview results with secondDoc column
Preview of column mappings
  1. Click OK to finalize the changes to the data set.

An aside: Queries for documentation

Table 1 lists the queries (including XPath functions) that you can use to extract documentation elements. Remember that documentation can be associated with most BPMN elements, not just the process or collaboration itself.

Table 1. Queries for documentation
QueryDescriptionExamples
documentation/@text Retrieve the default (first) documentation element. documentation/@text retrieves the first documentation element, which is equivalent to documentation[1]/@text
documentation[i]/@text Retrieve the ith documentation element. documentation[2]/@text retrieves the second documentation element
getAllBPMNDocumentation(xpath, prefix) Retrieve all documentation elements, each element prefaced with the prefix string. Notice that elements will automatically be separated by line breaks.

Returns a string.
getAllBPMNDocumentation(., "*") retrieves all documentation elements, using * as a bullet. getAllBPMNDocumentation(., " --> ") retrieves all documentation elements, using --> as a bullet.
getSomeBPMNDocumentation(xpath, depth, prefix) Retrieve the first ‘depth’ documentation elements, each element prefaced with the prefix string. Notice that elements will automatically be separated by line breaks.

Returns a String.
getSomeBPMNDocumentation(., 3, "*") retrieves the first three documentation elements, using * as a bullet.

getSomeBPMNDocumentation(., 10, "-->") retrieves the first ten documentation elements, using --> as a bullet.

Notice that using depth = 0 is equivalent to requesting all documentation elements, meaning that getSomeBPMNDocumentation(., 0, "*") is equivalent to getAllBPMNDocumentation
(., "*")
.

Editing the joint data set

Although you have modified the Root Elements data set, you cannot yet use the new column mapping in the layout. That is because the layout is actually bound to the Joint: Root Element Diagrams data set, so you need to modify that data set to account for the new secondDoc column mapping:

  1. Right-click the joint data set and select Edit.

When the Edit Data Set dialog appears, focused on the Query page, it shows both the Diagram and Root Elements data sets. You can see the new secondDoc column mapping included under the Root Elements data set, as Figure 19 shows.

Figure 19. Editing the joint data set
Joint data set is composed of two data sets

Do not make any changes to this page. The common field between both data sets is Name. In fact, just by opening the data set to edit it, you have updated it.

  1. You can confirm this by clicking the Preview Results page. Notice the new Root Elements::secondDoc field.
  2. Click OK to close the dialog.

Notice that the new Root Element::secondDoc is now visible in the Data Explorer view.

Binding column mapping to detail row

Now that you have modified the data set to include the second documentation element, it is time to insert it into the actual report layout:

  1. Simply drag the new secondDoc column mapping from the Data Explorer view to the new (empty) detail tow in the report layout.

As you hover your cursor over the detail row, you will see the mouse cursor annotated with the + sign, indicating that this location is an acceptable target for the column mapping (see Figure 20).

Figure 20. Dragging the new column mapping to the detail row
Cursor with plus sign, indicating good target

When you have completed the drag-and-drop operation, you can confirm the placement of the new column mapping by previewing the layout:

  1. Click the Preview tab of the main editor window.

You might notice that the padding for the original (first) documentation is not the same as for the new (second) documentation. By default, the new documentation has padding = 1 on all four sides; the original documentation has larger padding.

(Optional) Select the new element in the layout window and navigate to the Padding tab of the Property Editor view.

Change the padding.

Other tabs in the Property Editor can be used to change the font, border, etc.

You can also customize other parts of the report. For example, you can add a new label to identify the new documentation field, or change the font, margins, borders, and so forth. These customizations are not specific to BPMN, and you can learn more about them from citations in the Resources section.


Creating a new BPMN report design

When creating a new report design, it might be easiest to simply make a copy of the Blank BPMN Model Report, which is prepopulated with a BPMN data set and several data sources. However, if you prefer, you can create a new, empty report and then associate it with a BPMN data source and BPMN data sets.

Creating a report from scratch

  1. In the Report Design perspective, select File > New > Report from the menu.
  2. In the New Report dialog, choose a project as the parent folder, and provide a name for the file. Note: The file name does not have to be the same as the report’s name.
  3. Click Next and, from the Report page, select the type of template to use. For a blank report, select Blank Report.
  4. Click Finish.

A new report is created, with no data sources or data sets.

Creating a new BPMN data source

To create a new data source, right-click Data Sources in the Data Explorer view, and select New Data Source from the menu.

Figure 21 shows the New Data Source wizard that will then be available.

Figure 21. New Data Source wizard
BPMN Data Source selected in the list
  1. Ensure that the "Create from a data source type in the following list" option is selected and choose the BPMN data source. You can rename the data source, but that’s optional.
  2. Click Next.

On the Models page of the wizard, the Metamodels pane is already populated with the relevant BPMN and GMF metamodels. You can use the Add button to browse to one or more existing BPMN models to use as input for your new report (optional).

  1. For this example, browse to the same process model that you were using in the previous section.
  2. Click Finish.

The Data Explorer view now shows the new data source.

Creating a new BPMN data set

  1. To create a new BPMN data set, right-click Data Sets in the Report Explorer, and select New Data Set from the menu to open the wizard.

Figure 22 shows the New Data Set wizard.

Figure 22. New Data Set wizard
Creating a new data set from the data source
  1. Choose the data source that you want from the list of existing BPMN data sources. The Data Set Type will be "BPMN Data Set."
  2. Change the name of the data set (optional). if
  3. Click Next, and then click Next again on the Parameters page.

On the Row Mapping page, notice the Browse button in the left pane. There are two ways to browse: browse in a particular metamodel or browse in a specific instance model. With the first, you can create a row query based on anything in the metamodel. The second restricts you to row queries based on items that exist in the instance models associated with the data source. For example, compare the next two figures. Figure 23 shows the contents of the BPMN meta-model, and Figure 24 shows the contents of the process model used in the previous section.

Figure 23. Browsing the BPMN metamodel
BPMN 2.0 metamodel contents
Figure 24. Browsing a BPMN instance model
Instance model contents
  1. Assume that you want to create a data set based on call activities. There are two ways in which you can accomplish this:
    • You can browse to the metamodel and select CallActivity > Activity from the tree in the left pane.
    • Or you can browse to the instance model (assuming that it contains a call activity) and select a call activity from the tree in the left pane.
  2. Either way, the next step is to click on the > button in the Row Query pane.
  3. At this point, a Choose dialog window provides a list of query expressions to choose from. Currently, the only query expression supported for BPMN modeling reports is of the instanceOf form:

"instanceOf(//*, "bpmn2:<element>")

If you have chosen to browse the metamodel, this will be the third option in the Choose dialog, as shown in Figure 25.

Figure 25. Choose dialog to pick query
Query expression must be in 'instanceOf' form

If you have chosen to browse an instance model, choose the instanceOf option, but then edit the expression so that the first term is //*.

Tip:
It is better to browse the metamodel when creating data sets to avoid having to edit the expression.

  1. On the same page, there is a check box for Evaluate for every data source instance model. Ensure that this is checked so that it is possible to preview the data set and report layout by using the instance model associated with your data source.
  2. Finally, the same page has a Type field. After setting the Row Query expression, click the > button by the Type field.

If you have browsed using the metamodel, the Type field will be automatically populated with the appropriate type: bpmn2:CallActivity. If you had browsed the instance model, upon clicking the > button, you would be presented with the dialog window shown in Figure 26.

Figure 26. Choose dialog to pick a type
Choose from CallActivity hierarchy

This dialog occurs because the call activity chosen from the instance model is not a root element. A CallActivity is an Activity, which is a FlowNode, which is a FlowElement, which is a BaseElement. Only CallActivity is shown in the instance model, so you would not have been able to choose one of the other element types. When browsing the metamodel, you can choose any BPMN type for the query expression.

  1. For this example, ensure that the type is bpmn2:CallActivity.
  2. Click Next.

The next page specifies the column mapping.

  1. Click the Browse button in the left pane and select CallActivity.

The left pane will show the structure of the CallActivity, based on the BPMN 2.0 metamodel.

The simplest way to create a useful column mapping is to select the CallActivity line in the left pane and then click the > button in the Column Query pane. At that point, you will see a message in the Add Columns dialog window asking if you want to create columns for the first-level, simple attributes (see Figure 27).

  1. Click Yes.
Figure 27. Automatically creating columns
'Add Columns' dialog pop-up window

Several column queries are automatically added to the right side, including the ID, Name, and Called Element fields. Only singleton attributes, which are owned by CallActivity, are included. It is possible to create a column mapping to elements of owned collections, as well. As discussed earlier, a column query of documentation/@text refers to the first element in the documentations collection. Notice that, currently, it is not possible to create column queries referring to referenced (rather than owned) attributes or collections.

  1. Create a new column, named doc, with documentation/@text as the query and String as the type.
  2. Click Finish.
  3. Next, in the Edit Data Set dialog window, the focus is on the Output Columns page.
  4. To confirm that the row query and column mappings are as expected, select the Preview Results page.

The resulting table will show the results of this data set on the instance models associated with the data source. For the instance model that you have been using, the preview looks like Figure 28.

Figure 28. Preview results of the new data set
Edit Data Set, Preview Results view

Alt text =

Creating a simple report

Similar to the way that the results preview is shown in table form, it is possible to create a very basic report in table format.

To accomplish this, simply drag any data set, such as the new data set, onto the blank report layout.

A table will be created, where the first row contains the names of the columns, and subsequent rows contain information about all of the call activities in the instance models associated with the data source. See Figure 29 for an example.

Figure 29. Simple table report
Simple table with two rows

Obviously, this report is very basic and not particularly useful. You can use the relevant citations in the Resources section to learn more about how to create and customize BIRT reports in general.

Starting with a Blank BPMN Model Report

Although it is possible to create a new, empty report and then create a BPMN data source and relevant BPMN data sets, it is easier to simply make a copy of the Blank BPMN Model Report. This report has no layout, but it contains a BPMN data source and a collection of potentially useful BPMN data sets. In fact, every data set used in the creation of the BPMN Model Diagram Report and BPMN Model Metrics Report is included.

Creating your own Diagram data set

A Diagram data set is included in the Blank BPMN Model Report; however, it might be desirable to create a new data set to retrieve the diagram of a model. An XPath function has been provided to permit the extraction of the diagram from an instance model.

  1. To create a diagram data set, create a new data set and navigate to the Row Mapping page.
  2. Using the Browse button, select the GMF metamodel from the drop-down menu.
  3. In the Expression pane, type this query: getBPMNDiagram(.).
  4. To select the type, select Diagram > View from the GMF metamodel in the left pane.
  5. Click the > button by the Type field. The type will be notation:Diagram.
  6. Click the Next button.
  7. On the Column Mapping page, select notation:Diagram in the Browse drop-down menu.
  8. Select image:Blob from the left pane and click the > button in the Column Query pane. A column query with the name image, query getDiagramImage(.), and type Blob is created.
  9. Click Finish.
  10. To confirm that the row query and column mapping are correct, navigate to the Preview Results page of the Edit Data Set dialog.

You will not see an actual diagram, but rather a hexadecimal representation of the diagram. See Figure 30 for an example.

Figure 30. Preview results of diagram data set
Diagram in hexadecimal format

Adding a diagram to the layout

Unlike the previous example, simply dragging this new diagram data set onto the report layout will not result in a diagram being displayed. The hexadecimal representation of the diagram will be shown instead.

  1. To show the diagram, right-click on the layout and select Insert > Image from the menu.
  2. When the Edit Image Item dialog window appears, choose the Dynamic image option.
  3. Click the Select Image Data button, which opens the Select Data Binding dialog window.

You must bind this new image to your new Diagram data set.

  1. Ensure that the Data Set option is selected, and choose the new diagram data set from the drop-down menu.

The table is now populated with the image information from that data set.

  1. Make sure to select the image row, as shown in Figure 31.
Figure 31. Binding an image to the diagram data set
Select the 'image' row
  1. Click OK. The Edit Image Item dialog window now shows a dynamic image expression, linked to your diagram data set. See the example that follows.
Figure 32. Image is bound to Diagram data set
Edit Image Item dialog window
  1. Click Insert. The layout now shows a small square with a red x (Figure 33).
Figure 33. Diagram in the layout view
The red X represents the diagram

This icon represents the location of the diagram in the layout view.

  1. To see the diagram itself, click the Preview tab.

The diagram will be shown in context with the rest of the report.


Summary

By following these steps, you can create simple BIRT reports about your BPMN instance models. You can also customize existing reports to suit your needs, as well as create new reports from scratch.

Resources

Comments

developerWorks: Sign in

Required fields are indicated with an asterisk (*).


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Information in your profile (your name, country/region, and company name) is displayed to the public and will accompany any content you post, unless you opt to hide your company name. You may update your IBM account at any time.

All information submitted is secure.

Choose your display name



The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

Required fields are indicated with an asterisk (*).

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


All information submitted is secure.

Dig deeper into Rational software on developerWorks


static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Rational
ArticleID=547822
ArticleTitle=How to create and modify BIRT reports for BPMN models
publish-date=09282010