TIBCO EBX®
Graph View Add-on Documentation > User Guide
Navigation modeGraph View Add-on Documentation > User Guide

Using the add-on

Entering the Graph View

Once you register a table with the add-on, you can execute services to display the table, or the data it contains, in the Graph View. After the graph loads you can execute data queries, have one-click data access, and can perform other actions specific to the Graph View.

The following table lists procedures to enter the Graph View and their expected outcomes:

Expected Outcome

Procedure

Display a graph showing the data values of selected records. Note: You can determine whether users can view data values at the graph configuration level. See the information contained in 'Configuring the add-on' for information on configuration options.

To execute the 'Display the selected data value' service on a table:

  • Select a table registered with the Graph View.

  • Select one or more records. The records you select provide the context for the generated graph.

  • From the 'Actions' drop-down menu select: 'Graph View' → 'Display the selected data value'.

Display the table and its related tables in the Graph View. The table becomes the root node in the context of this graph. The following describes the behavior based on record selection:

  • When you don't select any records, all nodes display without relationship resolution-only the associated table names display. Unresolved nodes are indicated on each label by the '(-)' symbol. You'll need to perform a data query to complete resolution.

  • If you select one or more records, the Graph View uses the selected records as the graph's context and resolves nodes.

To execute the 'Display data structure' service on a table:

  • Select a table registered with the Graph View.

  • Optionally, select one or more records to automatically provide this graph with a context.

  • From the 'Actions' drop-down menu select 'Display data structure'.

Display graph nodes in a hierarchy based on recursive relationships, or simple join tables. To access this option from a table's menu, you must enable it at the graph configuration level. See 'Directly accessing hierarchy display from tables' for more information.

To execute the 'Display recursive hierarchy' service:

  • Select a table registered with the Graph View that has this service enabled in its configuration options.

  • From the 'Actions' drop-down menu select 'Display recursive hierarchy'.

Querying and accessing data

Once the Graph View is open, you can run data queries and access data returned by queries. The following example shows how to query an unresolved node and view table records in the Graph View. You can run queries using these same steps on a resolved node. To execute a query:

/data_query_service.png

/select_record.png

/query_node_1.png

Notice that node layout has changed to indicate which nodes have resolved and the last queried node displays larger than the others. This also helps identify the context of the graph. From the graph layout we can determine that a query was initiated from the 'Client' table using the 'Peter' record. The resolution reached as far as the 'Product' table. See the 'Query continuation' section for information on continuing resolutions. You can use the settings in the 'TIBCO EBX® Graph View Add-on configuration' → 'Reference data' → 'Node layout' table to alter display of each node type: standard node, resolved node and root node.

After a node has been resolved, the label displays the corresponding table's record. If the table contains more than one resolved record, the number in parenthesis indicates the number of resolved records in the table. Keep in mind that this is the number of resolved records or records in this context, and may not be the total number of records in the table. For example, the above node label Product[↑](3): Order portfolio indicates that the product table has three records. The Graph View makes accessing these records easy-see the next step.

/select_record_1.png

Query continuation

In the previous example, the query stopped at the 'Product' table. As shown in the corresponding image, an orange circle borders that node. This border indicates availability of the 'Continue data query' service. This service allows you to continue a query without resetting the graph's context and subsequently changing data values. You can customize the continuation node's border color used in each graph configuration.

To continue a query:

/continue_query_1.png

/continue_query_2.png

Displaying data as hierarchies

The Graph View can display data value nodes in a hierarchy when data structures include:

Self-referencing foreign key hierarchies

A self-referencing foreign key, or recursive relationship occurs when a foreign key references its containing table. In these instances, the Graph View creates a hierarchy of the table's data values based on the following guidelines:

The following image shows an example of a hierarchy based on recursive relationships shown in the table:

/hierarchy_2.png

To show a hierarchy based on a recursive relationship:

Hierarchical node arrangement based on foreign keys

A hierarchical arrangement of data value nodes based on foreign keys—when no recursive relationships exist—puts root table records at the topmost hierarchy level. The Graph View considers the table from which you ran the 'Display graph data value' service as the root table. Following the foreign key relationships between tables, each subsequent node level includes nodes from the child tables. As with the orientation options for graphs showing data values, each hierarchy row contains nodes from the same table.

/hierarchy_3.png

You can display a data value node hierarchy using the following methods:

Hierarchies from simple join tables

Your data structure contains a simple join table when a source table holds multiple foreign keys that refer to the same target table. The Graph View allows you to select one of these relationships and generates a hierarchical view of the corresponding data values.

The following image shows a graph based on the 'Relation Party' table's 'Parent' and 'Child' fields which hold foreign keys to the 'Party' table.

/hierarchy_4.png

To render a graph showing values from simple join tables as a hierarchy:

Directly accessing hierarchy display from tables

The 'Display recursive hierarchy' service does not automatically show in the Graph View sub-menu for all tables registered with the add-on. A table must have a recursive or a simple join relationship to display as a hierarchy in the Graph View. And, you must make the Graph View check to determine that these types of relationships exist. Use the following instructions to have the Graph View check for these relationships (you should perform this action after updates to the data model that may affect these relationships):

After running the service, a confirmation screen displays a list of tables checked by the service. A value of 'Yes' in the 'Result' column indicates the table met the requirements and you can run the 'Display recursive hierarchy' from its 'Actions' menu.

When the data model changes, you have to run this service again to get the update accordingly.

Understanding node labels and symbols

Each node label conveys specific information about that node, such as how many records its corresponding table contains, whether there are reflexive relationships, whether it has undergone resolution and the resolution direction.

In reference to the below illustration, the following examples translate two node labels:

/node_symbols_1.png

'Services' menu

When in the Graph View the 'Services' drop-down menu contains a list of executable services that can be very useful. Please, see the reference section's 'Services' menu for more information regarding each service.

Optimizing node display

At times, you may want to temporarily hide nodes that don't provide additional value and only serve to clutter your graph. Other times, you could more readily read and understand a graph if its nodes displayed differently. To meet these challenges, the Graph View allows you to hide nodes and change a graph's display orientation. The following sections describe how to work with these options:

Showing and hiding nodes

The Graph View provides the following two ways to hide standard nodes:

/hide_node_1.png

/hide_node_2.png

At anytime, you can open a graph's 'Services' menu and select 'Show hidden nodes' to reveal previously hidden nodes. It does not matter what methods you used to hide nodes; running this service displays all hidden nodes.

/show_nodes_1.png

Expanding and collapsing nodes

When viewing a graph that displays recursive relationships, you can expand and collapse nodes to view/hide related nodes. Administrators can configure display behavior that affects the number of nodes that display at any one time by:

The expand/collapse options are only available for data values in a recursive hierarchy. See the Showing and hiding nodes section for options in other types of graphs. To expand a node and view related nodes:

You can collapse any node that has displayed related nodes. When you click a node and select 'Collapse nodes', all nodes that have forward transitions from the selected node and any node related to these forward nodes collapses. If at anytime you would like to display all available nodes, select 'Show hidden nodes' from the 'Services' menu.

Specifying graph display modes

Some of your graphs may only have a few nodes while others have a plethora. Upon opening a graph containing many nodes, some nodes can render outside of the graph display area. When this occurs, you have to either zoom out or drag the graph to see these nodes. On the other hand, if a graph with few nodes opens to a distant zoom you might have to zoom in to read labels and symbols. To improve your viewing experience, the Graph View allows you to specify a default display mode for a graph configuration and change the display mode while viewing a graph.

To specify a default display mode used by a graph configuration:

To specify a display mode while viewing a graph, choose from the following options located under the 'Services' menu:

/actual_size_1.png

/fit_zoom_1.png

Changing default node orientation

The Graph View optimizes node display by arranging nodes in a grid. This functionality applies to graphs showing data structure and graphs showing data values. You can use the following layouts:

You can determine the preferred layout using default configuration settings, or by selecting an alternative option from a graph's 'Services' dropdown menu. See the 'Configure default grid display' section below for information on setting the default layout. Examples of each display option are shown in the following images.

Horizontal display:

/horizontal_display.png

Square display:

/square_display.png

Vertical display:

/vertical_display.png

Random display:

/random_display.png

Center aligned hierarchy:

/center_aligned_hierarchy.png

In a hierarchy:

/hierarchy_5.png

Configuring default grid display

By default, grid orientation is square for data structure graphs, and center aligned hierarchy for data value graphs. The following steps show how to change default grid layout: