Rational Developer for System z

Two development scenarios: (1) Main flow; (2) Main flow with invoked flows

When you are working with generation properties files, the generation properties editor, and the Generate Runtime Code editor, there are two overall development scenarios: (1) the scenario in which the program consists of only a main flow; and (2) the scenario in which the program includes one or more invoked flows in addition to the main flow.

This topic provides an overview of each scenario. Subsequent sections of the online help explain these steps in much more detail.

Scenario 1: Main flow only

Here is an overview of the steps to follow if your program consists of a main flow only, with no invoked flows:

  1. Use the New Generation Properties wizard to create a generation properties file for the main flow (see Step A1. Create a generation properties file for the main flow).

  2. Use the generation properties editor to edit the generation properties file for the main flow (see Step A2. Edit the generation properties file for the main flow).

  3. Run the Generate Runtime Code wizard on the generation properties file for the main flow to generate output files for the main flow (see Part B. Run the Generate Runtime Code wizard).

Scenario 2: Main flow with invoked flows

Note: The depth of invocation for flows is only one level deep. That is, although a main flow can invoke another flow (and can sequentially invoke multiple flows) an invoked flow cannot invoke another flow (see Flow types).

Here is an overview of the steps to follow if your program includes a main flow and one or more invoked flows:

  1. Use the New Generation Properties wizard to create a generation properties file for the main flow (see Step A1. Create a generation properties file for the main flow).

  2. Use the generation properties editor to edit the generation properties file for the main flow (see Step A2. Edit the generation properties file for the main flow).
    • Here (in Scenario 2), the generation properties file for the main flow contains:
      • The generation properties for the main flow; and
      • The generation properties for each flow invoked by the main flow.
      .
    • You need to review or set the generation properties for the main flow and also set the generation properties for each invoked flow.

  3. Use the New Generation Properties wizard to create a generation properties file for each invoked flow (see Step A3. Create a generation properties file for each invoked flow).

  4. Use the generation properties editor to edit the generation properties file for each invoked flow (see Step A4. Edit the generation properties file for each invoked flow).
    • Notice that for each invoked flow, you have two groups of generation properties:
      • A group residing in the generation properties file for the main flow (see Step 2).
      • A group residing in the generation properties file for each invoked flow (here in Step 4).
    • Important: You need to set the generation properties for both groups to the same values (see Requirement for the generation properties of invoked flows).
    • Tip: An easy way to make the two sets of generation properties have the same values is to set an option in the New Generation Properties wizard that allows you to reuse existing generation properties. You can set this option either when you create the generation properties file for the main flow or when you create the generation properties files for the invoked flows (see Reusing properties from the most recently saved generation properties file).

  5. Run the Generate Runtime Code wizard on the generation properties file for the main flow to generate output files for the main flow (see Part B. Run the Generate Runtime Code wizard).

  6. Run the Generate Runtime Code wizard on the generation properties file for the each invoked flow to generate output files for each invoked flow (see Part B. Run the Generate Runtime Code wizard).


Feedback