TestingDocs.com
    Software Testing website
    • Automation
      • Selenium
      • JBehave Framework
    • Tutorials
      • MySQL Tutorials
      • Testlink
      • Maven
      • Git
    • IDEs
      • IntelliJ IDEA
      • Eclipse
    • Flowcharts
      • Flowgorithm
      • Raptor
    • About

    Raptor Flowchart

    Parameter scope in Raptor Procedure

    Overview

    Let’s understand the parameter scope in the Raptor procedure with an example. A Procedure is a set of execution flowchart steps that are invoked by using the Call flowchart symbol. The procedure allows parameters to be passed on each invocation

    In Raptor there are below types of mechanisms for passing the parameters to procedures.

    • Input
    • Output
    • Input/Output

     

    Procedure Call Raptor

    Input Parameter scope

    The caller flowchart i.e Main flowchart can pass input parameters to the procedure. The procedure flowchart is called callee. TheĀ  callee is the procedure that is called by the Main flowchart. Input parameters have a local scope in the procedure flowchart. The changes made to the parameters are only valid in the procedure body.

     

    main flowchart calling procedure

     

    Let’s consider a sample procedure Proc with input parameter inParam. The main flowchart will pass the input parameter. We can observe that even when the procedure changes the input parameter in the procedure steps the main flowchart variable inParam remains the same after the procedure call.

     

    Output

    InParam in main before proc call:=10
    InParam passed from main:=10
    InParam in procedure after modification:=12
    InParam in main After proc call:=10
    —-Run complete.

     

    Input parameter local scope

    Output Parameter

    Unlike the input parameter, the output parameter reflects or take the changes of the variable to the caller. So, if the procedure changes the value of the output parameter

    the changesĀ  are reflected to the caller of the procedure. In out case, the changes will reflect in the main flowchart.

     

    RAPTOR Tutorial Page: https://www.testingdocs.com/raptor-a-flowchart-tool/

    RAPTOR official website: https://raptor.martincarlisle.com/

    Related Posts

    Install RAPTOR Avalonia CentOS

    Raptor Flowchart /

    Install RAPTOR Avalonia on CentOS

    RAPTOR Avalonia Edition Windows

    Raptor Flowchart /

    Download RAPTOR Avalonia Edition on Windows

    RAPTOR Editions

    Raptor Flowchart /

    RAPTOR Editions

    RAPTOR flowcart to write to a file output

    Raptor Flowchart /

    Write to a file with RAPTOR flowchart

    Sum of Squares Array Elements Modular Approach

    Raptor Flowchart /

    Sum of Squares of Given Array Elements

    ‹ Abstract class in Raptor Flowchart› Alternatives to Raptor Flowchart Tool

    Recent Posts

    • ChatGPT Subscription Plans
    • Stellar Converter for Database
    • Stellar Log Analyzer for MySQL
    • Stellar Repair for MySQL
    • ChatGPT Capabilities
    • How to secure your SQL Database: Tips and Tricks
    • ChatGPT4 Conversational AI Features
    • Shaping the Future of Development: Exploring Key Trends in Software Engineering
    • Improving Java Performance with Multithreading
    • Open-source Vector Databases

    Back to Top

    Links

    • Contact
    • Privacy Policy
    • Cookie Policy

    www.TestingDocs.com