Building A Complex Birt Report

69
® IBM Software Group © 2008 IBM Corporation Building a Complex UML BIRT Report Steven Hovater Oct 3, 2008 [email protected]

description

Presentation showing creation of a complex BIRT report that extracts info from Rational Software Architect UML model.

Transcript of Building A Complex Birt Report

Page 1: Building A Complex Birt Report

®

IBM Software Group

© 2008 IBM Corporation

Building a Complex UML BIRT Report

Steven Hovater Oct 3, 2008

[email protected]

Page 2: Building A Complex Birt Report

IBM Software Group | Rational software

2

®

Starting Point Given this exemplar:

Page 3: Building A Complex Birt Report

IBM Software Group | Rational software

3

®

Destination

We want to produce:

Page 4: Building A Complex Birt Report

IBM Software Group | Rational software

4

®

Establish mapping Some mappings are

obvious

Some are not

Page 5: Building A Complex Birt Report

IBM Software Group | Rational software

5

®

How the pieces fit together:

Capability relates to Operational Capability Realization Capability Operational Capability (Association)

Operational Capability Realization relates to Operational Capability Realized Operational Capability (Realization)

Operational Activities relate to Operational Capability containment

System relates to System Operational Capability Capability Operational Capability (Association)

System Operational Capability relates to System Capability Realized Operational Capability (Realization)

Operational Activities relate to System Capabilities Activity Realization (Association)

System Functions relate to System Capability Containment

Page 6: Building A Complex Birt Report

IBM Software Group | Rational software

6

®

Problem statement

Find the capabilities that relate to systems by determining which operational capabilities map to system operational capabilities via the operational activities that are realized by the system functions.

In the DoDAF domain, it’s the mapping of the operational to the system views.

Page 7: Building A Complex Birt Report

IBM Software Group | Rational software

7

®

First Query

Create table that relates Capabilities (that are Operational Nodes) to Operational Capabilities

Page 8: Building A Complex Birt Report

IBM Software Group | Rational software

8

®

BIRT – first query details

Establish the data source Include the model (s)

Include the necessary profile(s) (in this example, UPIA)

Create a data set Row

Extract all the Capability Operational Capability associations that relate Capabilities (that are Operational Nodes) to Operational Capabilities

Columns:

Name of the Capability/OpNode

URI of the Capability/OpNode

Name of the Operational Capability

URI of the Operational Capability

Page 9: Building A Complex Birt Report

IBM Software Group | Rational software

9

®

Establish the Data Source

Page 10: Building A Complex Birt Report

IBM Software Group | Rational software

10

®

Create the first data set row mapping

Page 11: Building A Complex Birt Report

IBM Software Group | Rational software

11

®

Specify the columns

Discussion point: The sample model uses the Capability stereotype for both Operational Nodes and Systems. In this query, we only want the Capabilities that are Operational Nodes.

We know that one end of the relationship is a Capability and the other is an Operational Capability just from the semantics of the CapabilityOperationalCapability definition.

Page 12: Building A Complex Birt Report

IBM Software Group | Rational software

12

®

Filter out the Capabilities that aren’t Operational Nodes

Page 13: Building A Complex Birt Report

IBM Software Group | Rational software

13

®

Validate the query

Page 14: Building A Complex Birt Report

IBM Software Group | Rational software

14

®

Second Query Create table that relates Operational Capabilities to Operational Capability

Realizations

Page 15: Building A Complex Birt Report

IBM Software Group | Rational software

15

®

BIRT – second query details

Row Extract all the Realized Operational Capability relationships

Column Name of the Operational Capability

URI of the Operational Capability

Name of the Operational Capability Realization

URI of the Operational Capability Realization

Page 16: Building A Complex Birt Report

IBM Software Group | Rational software

16

®

Establish the second query row mapping

Page 17: Building A Complex Birt Report

IBM Software Group | Rational software

17

®

Specify the columns

Page 18: Building A Complex Birt Report

IBM Software Group | Rational software

18

®

Validate the query

Page 19: Building A Complex Birt Report

IBM Software Group | Rational software

19

®

Third Query Create table that relates Systems to Operational Capabilities via Capability

Operational Capability associations

Page 20: Building A Complex Birt Report

IBM Software Group | Rational software

20

®

BIRT – details

Create a data set Row

Extract all the Capability Operational Capability associations that relate Systems to Operational Capabilities

Columns:

Name of the System

URI of the System

Name of the Operational Capability

URI of the Operational Capability

Page 21: Building A Complex Birt Report

IBM Software Group | Rational software

21

®

Create the row mapping

Page 22: Building A Complex Birt Report

IBM Software Group | Rational software

22

®

Create the column mapping

Page 23: Building A Complex Birt Report

IBM Software Group | Rational software

23

®

Filter out non-Systems

Page 24: Building A Complex Birt Report

IBM Software Group | Rational software

24

®

Validate query

Page 25: Building A Complex Birt Report

IBM Software Group | Rational software

25

®

BIRT – create the fourth query

Row Extract all the system functions

Columns Name of the system function

URI of the system function

Name of the system function owner

URI of the system function owner

Page 26: Building A Complex Birt Report

IBM Software Group | Rational software

26

®

Create the row mapping

Page 27: Building A Complex Birt Report

IBM Software Group | Rational software

27

®

Create the column mapping

Page 28: Building A Complex Birt Report

IBM Software Group | Rational software

28

®

Validate the query

Page 29: Building A Complex Birt Report

IBM Software Group | Rational software

29

®

BIRT – create the fifth query

Row Extract all operational activities

Column Name of the operational activity

URI of the operational activity

Name of the operational activity owner

URI of the operational activity owner

Page 30: Building A Complex Birt Report

IBM Software Group | Rational software

30

®

Establish the row mapping

Page 31: Building A Complex Birt Report

IBM Software Group | Rational software

31

®

Create the column mapping

Page 32: Building A Complex Birt Report

IBM Software Group | Rational software

32

®

Validate Query

Page 33: Building A Complex Birt Report

IBM Software Group | Rational software

33

®

BIRT – create the sixth query

Row Extract all activity realizations

Column Name of the operational activity

URI of the operational activity

Name of the system operational activity realization

URI of the system operational activity realization

Page 34: Building A Complex Birt Report

IBM Software Group | Rational software

34

®

Establish the row mapping

Page 35: Building A Complex Birt Report

IBM Software Group | Rational software

35

®

Create the column mapping

Page 36: Building A Complex Birt Report

IBM Software Group | Rational software

36

®

Validate Query

Page 37: Building A Complex Birt Report

IBM Software Group | Rational software

37

®

First joint data set Create table that relates Operational Nodes that are Capabilities to the

Operational Capability Realizations

Page 38: Building A Complex Birt Report

IBM Software Group | Rational software

38

®

Join based on OperationalCapabilityURI

Page 39: Building A Complex Birt Report

IBM Software Group | Rational software

39

®

Validate the query

Page 40: Building A Complex Birt Report

IBM Software Group | Rational software

40

®

Create second joint data set

Create a table that joins the OperationalActivities to the first joint data set

We want those OperationalActivities whose parent is an OperationalCapabilityRealization related to a Capability that’s an Operational Node.

Page 41: Building A Complex Birt Report

IBM Software Group | Rational software

41

®

Validate results

Page 42: Building A Complex Birt Report

IBM Software Group | Rational software

42

®

Third joint data set Create a table that links the Systems to the System

OperationalCapabilityRealizations (which are OperationalActivityRealizations)

Page 43: Building A Complex Birt Report

IBM Software Group | Rational software

43

®

Create the joint data set

Page 44: Building A Complex Birt Report

IBM Software Group | Rational software

44

®

Validate results

Page 45: Building A Complex Birt Report

IBM Software Group | Rational software

45

®

Create fourth joint data set Create a table that relates the System Functions to the

OperationalActivityRealizations that are linked to the System OperationalCapabilityRealizations

Page 46: Building A Complex Birt Report

IBM Software Group | Rational software

46

®

Create the joint data set

Page 47: Building A Complex Birt Report

IBM Software Group | Rational software

47

®

Validate Results

Page 48: Building A Complex Birt Report

IBM Software Group | Rational software

48

®

Create Fifth Joint Data Set Join the Operational Activity (Query6) with the table that links the Capability to

the Operational Activity (J2)

Page 49: Building A Complex Birt Report

IBM Software Group | Rational software

49

®

Validate the Query

Page 50: Building A Complex Birt Report

IBM Software Group | Rational software

50

®

Create final joint data set Now, join the operational to the system (join S2 and O1)

Page 51: Building A Complex Birt Report

IBM Software Group | Rational software

51

®

Validate the results There are many columns in the resulting data set – as a results, we’ve broken the image into two chunks.

Page 52: Building A Complex Birt Report

IBM Software Group | Rational software

52

®

Presentation

Now that we have the data that we need, we’ll need to present it appropriately

We’re going to need to create a data cube, and a crosstab

Page 53: Building A Complex Birt Report

IBM Software Group | Rational software

53

®

Create the Data Cube Associate the SV5 data set with this cube

Page 54: Building A Complex Birt Report

IBM Software Group | Rational software

54

®

Create the groups and summary field in the data cube

Page 55: Building A Complex Birt Report

IBM Software Group | Rational software

55

®

Create the crosstab

Page 56: Building A Complex Birt Report

IBM Software Group | Rational software

56

®

Drag/drop rows/columns and summary fields Drag/drop System

Page 57: Building A Complex Birt Report

IBM Software Group | Rational software

57

®

Expose group levels for System Next, expose the group levels

Page 58: Building A Complex Birt Report

IBM Software Group | Rational software

58

®

Drop Capability Into Column

Page 59: Building A Complex Birt Report

IBM Software Group | Rational software

59

®

Expose groups

And, as with the Systems, expose the groups

Page 60: Building A Complex Birt Report

IBM Software Group | Rational software

60

®

Now, add the measurement field

Page 61: Building A Complex Birt Report

IBM Software Group | Rational software

61

®

Cleaning up…

Set vertical presentation, and hide measure header

Page 62: Building A Complex Birt Report

IBM Software Group | Rational software

62

®

Preview Results

Voila! We have an SV5 per the problem definition!

Page 63: Building A Complex Birt Report

IBM Software Group | Rational software

63

®

Complete the report Edit the data cube summary field

Page 64: Building A Complex Birt Report

IBM Software Group | Rational software

64

®

Edit the expression Add JavaScript code that produces an “X” if the field is not blank

Page 65: Building A Complex Birt Report

IBM Software Group | Rational software

65

®

Add a label to the crosstab

Page 66: Building A Complex Birt Report

IBM Software Group | Rational software

66

®

The Completed SV5

Page 67: Building A Complex Birt Report

IBM Software Group | Rational software

67

®

Appendix Including parents and grandparents

Page 68: Building A Complex Birt Report

IBM Software Group | Rational software

68

®

Appendix

Page 69: Building A Complex Birt Report

IBM Software Group | Rational software

69

®

Appendix