LogiView

How to Check a Procedure

 

What to do:

As a prerequisite for this example, you must have added the procedure DocuProcedure as described in "How to add functions and commands". Additionally, you should create a trace file and enable the Debug Mode ("How to Define Default Values").
 

Syntax Check

 

When saving entries, the syntax of used commands/functions is checked. Additionally, the program evaluates if a variable or procedure definition conflict with previously assigned variables/procedures exists. In case of an error the error message detailing the type of error is opened in the message bar. Additionally, a selection menu is opened where the user can choose to either

  • correct the error OR
  • keep the command/procedure as is (e.g. in case of a variable definition).
 
  Once the procedure is created, it may be run for the first time.
 

Test run of a procedure

Switch to the Logic Models/Procedures form.

Use the search function to display the DocuProcedure.

Click the button Syntax Check.

 

In addition to program output (e.g. from 'put' commands) program information is displayed in the message bar after the execution. In this example the value of the DOKU_LOGIK_1 variable (FALSE) (which is only displayed in Debug Mode) and the following line are displayed: "Decision table / procedure "DokuVerbund/Doku/Procedure" completed successfully." In case of an error, an error message is displayed.

 

 

 

  Additionally, a trace file will be available after the run-time execution of a procedure. This file can be used to check the results of functions and commands.
 

Trace File

  In order to run the trace file, call up the Trace Log function in the Manager > Macro > LogiView > Trace Protocol menu.