RDi Remote System Explorer App diagram viewer ... Application Diagram model diagram file...

Click here to load reader

download RDi Remote System Explorer App diagram viewer ... Application Diagram model diagram file (appmdl_diagram)

of 19

  • date post

    23-Sep-2020
  • Category

    Documents

  • view

    9
  • download

    0

Embed Size (px)

Transcript of RDi Remote System Explorer App diagram viewer ... Application Diagram model diagram file...

  • 1

    ®

    IBM Software Group

    © 2009 IBM CorporationLast Update: 9/10/2009

    Rational Developer for IBM i (RDi) Application Diagram Viewer

    Featuring: Call Hierarchy and Program Structure diagrams,

    2

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation2

    Agenda

    Application Diagram Viewer – Creating diagrams in RDi – Working with diagrams

    – Saving printing diagrams

    – Showing language structures in diagrams

  • 2

    IBM Software Group | Rational software

    3

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    Application Diagram overview Application Diagram

    Provides developers with a graphical overview of the structure of their native IBM i applications Currently supports ILE RPG, ILE COBOL, CL, programs and service programs Source Call Diagram

    Call graph showing subroutine, procedure, and program calls

    Program Structure Diagram ILE program and service program bindings

    Features Subroutine and Procedure invocation hierarchy Program call support Functional zoom Save as image Print selected diagrams

    4

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    Application Diagram workbench views

    Diagram

    Main canvas

    Properties

    Outline

    Palette

  • 3

    5

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    Launching the Application Diagram

    Select resources, right click and select Visualize Application Diagram Native members, *PGMs, *SRVPGMs,

    IFS files and folders

    Local files and folders

    iSeries project resources

    Multi-select available within each group

    Does not use any unsaved editor changes

    6

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    Launching from the Editor Launch for single source member when open in the RSE Source Editor Always uses current contents of editor (saved or unsaved)

  • 4

    7

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    Building an Application Diagram Progress Monitor appears while diagram is being built

    User can click “Run in Background” and continue working Two phases

    Resolving resources (download phase)

    Scanning resources (building phase)

    8

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    Source Call Diagram

    Diagram opens initially showing only selected members, programs, and service programs

    Functional zoom hides details

    Click + to see details for member

    Aggregated relationship (something inside ORDENTR calls program SLTCUSTR)

    Member ORDENTR copies member ORDMAIN

  • 5

    9

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    Application Diagram - Functional Zoom Functional Zoom

    Start with top level resources and drill down to see lower level details as desired

    Diagram opens showing: Top level resources (members, programs and service programs)

    Direct relationships between resources Source member includes and copies, service program bindings

    Aggregated relationships between resources An aggregate relationship is inferred from lower levels For example: subroutine CMTORD in member A invokes subroutine VFYCUST in

    member B implies an aggregate relationship between member A and member B

    Expand members to see a call graph for the member Direct relationships still shown between top level resources

    Aggregate relationships updated to reflect their real source or target

    10

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    Source Call Diagram

    ORDENTR member expanded to view a call graph

    ORDENTR member expanded to view a call graph

    Subroutine WrtDtaQ calls program QSNDDTAQ

    Subroutine SLTPART calls something inside the program SLTPARTR

    Subroutine RqsPart calls subroutine Process

  • 6

    11

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    ILE Program and Service Program Bindings

    ILE Program and Service Program Bindings

    Program QQFENDSVR binds to service program QQFUTILS

    Modules WFVTACC and WFVTSVR are bound into program QQFVTSVR

    These *SRVPGMs were not part of initial user selection so details are not shown

    Selecting a node highlights it’s incoming and outgoing connections

    Program Structure Diagram

    12

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    Application Diagram – CL and Program Calls

    CL supported by the Application Diagram Includes:

    CL members CL procedures and CL subroutines Relationships for

    Includes Subroutine, procedure and program calls

    Program Calls are shown in the Source Call Diagram Represented as a connection from the calling subroutine or procedure node to

    the called program

    For *LIBL relative calls: Program object shown in diagram with resolved library name Tooltip on connection and Calls tab of properties view show *LIBL

  • 7

    13

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    Outline View Outline view shows high level overview of the current diagram Two modes

    Thumbnail mode shows graphical overview Shaded area represents the portion of the diagram currently visible in the editor

    Text mode shows list of members, programs and service programs Expand member to show list of subroutines and procedures

    14

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    Palette view Contains

    Zoom tool

    Note | Text | Note Attachment Can be opened as separate view Or attached to editor

    Happens automatically if separate

    view is not open

  • 8

    15

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    Application Diagram Properties Select a node or connection in the diagram and the Properties view shows additional details

    Click the tabs to see additional types of information. For example, all exported procedures from a service program.

    Who calls this procedure (or subroutine) and who it is called by.

    Callable Blocks are subroutines and procedures Includes are included members and copybooks

    16

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation16

    Agenda

    Application Diagram Viewer – Creating diagrams in RDi

    – Working with diagrams – Saving printing diagrams

    – Showing language structures in diagrams

  • 9

    17

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    Application Diagram Actions

    Here are just some of the actions you can perform in the application diagram Open source code and position to definition by double clicking on:

    Subroutine or procedure OPM Program Service program Module inside of an ILE program Subroutine, procedure or program call connection

    Positions to source line where the call is made Print diagram

    Document the diagram by adding notes and text

    Export diagram to a graphics file

    Re-arrange the diagram Diagrams are automatically arranged to minimize overlap and lines crossing

    18

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    View source for selected subroutine/procedure

    Double click on subroutine/procedure in diagram

    Source editor opens member Cursor positioned at first line of

    subroutine/procedure

  • 10

    19

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    View source for selected incoming connection

    Double click on incoming connection Source editor opens member Cursor positioned at line of invocation

    of subroutine/procedure

    20

    Rational Developer for System i

    © 2008 IBM Corporation

    Rational Developer for System i

    © 2008 IBM Corporation

    View source for selected outgoing connection

    Double click on outgoing connection Source editor opens member Cursor positioned at line of invocation

    of subroutine/procedure