Adding a Saved Procedure to a Process Flow

How to:

Reference:

You can add any previously saved procedure to the process flow you are currently designing. The procedure may be:


Top of page

x
Procedure: How to Add a Flow to the Process Flow
  1. Right-click an application directory in the navigation pane and select New then Flow.
  2. Click the Process Flow tab. A new workspace containing a Start object opens in the right pane.
  3. From the navigation pane, select a flow and drag it into the process flow workspace. The flow may be a data flow or another process flow.
  4. Right-click the object to the left of the flow and, holding the mouse button down, drag from the left to the right object, creating a connecting arrow. Release the mouse button.

    The procedure will be executed within the process flow at the point where it is encountered.

  5. Click the Save button to update the process flow.

Top of page

x
Procedure: How to Add a Procedure to the Process Flow
  1. Right-click an application directory in the navigation pane, select New and then Flow.
  2. Click the Process Flow tab. A new workspace containing a Start object opens in the right pane.
  3. From the navigation pane, select a procedure and drag it into the process flow workspace. For related information, see Procedures and Flows.
  4. Right-click the object to the left of the procedure and, holding the mouse button down, drag from the left object to the right object, creating a connecting arrow. Release the mouse button.

    The procedure will be executed within the process flow at the point where it is encountered.

  5. Click the Save button to update the process flow.

Top of page

x
Reference: Procedures and Flows

In the course of developing a flow (either a data flow or a process flow), you may need to perform a variety of specialized tasks, from setting up the environment parameters and variables to copying files. The DMC provides an editing window in which you can type your 4GL code or SQL. When you save the file, it is stored in an application directory, identified by the icon .

Then you can:


Top of page

x
Procedure: How to Create a Procedure

To create a procedure:

  1. Right-click an application directory in the navigation pane and select New then Procedure.
  2. A text editing window opens. Type the procedure code, which may be either FOCUS or SQL.

    For example, create a procedure named PRODPARMS that has two parameters, &PTYPE and &CAT, as shown in the image.

    Text procedure

    You are responsible for the accuracy of the syntax you enter. However, any errors that are generated will be displayed in the Server Messages tab below the workspace when you execute the procedure.

  3. Click the Save or Save As button from the Quick Access Toolbar. Enter a procedure name in the Save Procedure As dialog box.

    The procedure is listed in the navigation pane under an application directory, where it is preceded by the procedure icon.

    From here you can drag it into a process flow at any point. For details, see Adding a Saved Procedure to a Process Flow.


iWay Software