ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Editors / Code editor
  • Overview
  • Example and vocabulary
  • Example: modeling of the callees for the "OrderValidation" procedure
  • How to?
  • Changing the level of details in the modeling
  • Accessing the code of a process from the modeling
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
The reverse code modeling allows you to view in a graph:
  • the different processes, calls to procedures found in a WLanguage procedure or process. The final graph is called "Graph of callees".
    This type of graph allows you to understand how a procedure is organized and to find where modifications must be performed (when re-using an existing code for example).
  • the different processes that call a WLanguage procedure or process. The final graph is called "Graph of callers".
    This type of graph allows you to evaluate the impact of a modification made in a procedure.
The reverse modeling can be performed on the code of a window, page, control, procedure, ...
The reverse modeling creates a graph in the modeling editor. This chart can be entirely modified according to your own requirements.
Example and vocabulary

Example: modeling of the callees for the "OrderValidation" procedure

The reverse modeling of callees for the "OrderValidation" procedure is as follows
The different elements of this graph are as follows:
  1. Process for which the reverse modeling was performed.
  2. Process called.
  3. Non-detailed group of processes.
  4. Detailed group of processes.
What is a group of processes?
A group of processes is used to group the processes by feature, in order to get a synthetic vision of the architecture of the processes. In this example, the "OrderValidation" procedure runs the "StockModification" procedure that runs two other procedures. This set is a group of processes.
In the graph, a group of processes can be detailed or not. The icon is used to expand a group of processes and is used to collapse a group of processes.
The final graphs can be modified in the modeling editor in order to display more details, to add comments, ...
How to?
To perform a reverse code modeling:
  1. Start the wizard for reverse modeling:
    • select "Reverse-modeling" from the popup menu of the procedure ("Project explorer" pane).
    • from the code editor. To do so, position the mouse cursor on the name of a procedure, in a process, a procedure, a class code, ... and select "Reverse-modeling" from the popup menu.
    • from the cross-reference window of a procedure (opened by "Shift+F2"): click the "Reverse modeling of callers" button ("Callers" tab) or the "Reverse modeling of callees" ("Callees" tab).
  2. Choose the requested type of graph: Graph of callees or Graph of callers.
  3. Enter the name of the flexible modeling that will be generated.
    This name has the following format by default: "Reverse modeling of <callees/callers> by <Procedure Name>".
  4. Select the options for coloring the modeling. You have the ability to color the processes: in this case, all the processes belonging to the same project element (window, class, ...) will use the same color.
    You also have the ability to enable the alignment grid in the modeling editor.
  5. The processes can be grouped by feature.
    We advise you to create groupings when reverse modeling is performed on complex procedures. They provide a synthetic view before exploring the code step by step.
    For smaller processes, we advise you not to create groups in order to directly access the maximum level of details. However, the level of details cannot be modified in the modeling editor.
  6. Validate the creation of the graph. The modeling editor is opened and the generated graph is displayed.

Changing the level of details in the modeling

If you have chosen to generate a graph while grouping the processes by feature, the level of details can be changed in the modeling.
Grouped processesDetailed processes


To increase the level of details:
  • of a process: double-click in the process displayed in the modelling.
  • of all processes in the graph: click in the toolbar.
To reduce the level of details:
  • of a process: double-click the icon in the process.
  • of all processes in the graph: click in the toolbar.

Accessing the code of a process from the modeling

To access the code of a process:
  • double-click in the process.
  • press "F2" on the selected process.
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/19/2023

Send a report | Local help