How to: |
Reference: |
By default, each time you run a flow, either standalone or as a component in a process flow, a new agent is started. However, you may want to run a flow in the agent that is currently running, rather than start a new agent. Suppose, for example, that you run a procedure that issues a FILEDEF, a SET command, or that creates a global (&&) variable, and you want to reference the setting or variable in the flow that follows the procedure. Since a flow that runs in a new agent will not recognize or be able to use these settings or variables, you need to maintain continuous processing in the same agent.
DataMigrator supports the runtime requirement. To ensure that the continuous connection is maintained at runtime, you can request that a flow that creates input required by another flow be marked to Run as Stored Procedure. See How to Maintain Continuous Processing in a Single Agent.
The procedure will be executed within the process flow at the point where it is encountered.
Tip: If you switch to Text View and examine the underlying execution code for a flow, you will see EX CMASAP as the flow name. CMASAP triggers a connection to a new agent. If you select Run as Stored Procedure in the Properties pane, the code shows EX flow name and keeps the same agent open for processing.
To access the Properties pane, double-click a flow object or procedure.
The Properties pane has the following fields and options:
Displays the name of both the object and the directory in which the flow or procedure is stored.
If you drag a Flow icon from the toolbar, you can enter:
Note: If you have already created and saved the procedure, the application directory and procedure name appear when you open the window.
Select this check box to obtain parameters using a synonym, instead of entering them in the Properties pane.
When this option is used, a variable is automatically generated with the name of each field in the selected synonym. If the associated data source of the synonym has more than one row, the flow is submitted once for each row, with values for the variables obtained from each row.
For an example of using this option, see Iterating Through Multiple Tables. If you select this option, the following fields are available:
Indicates any parameters that should be used when the flow or procedure is run.
Clicking the ellipsis opens the Parameter Editor for setting the parameter values. For more information, see How to Pass Parameters in a Process Flow.
Select this check box if you wish to run the flow in the agent that is currently running, rather than by connecting to a new agent. This option is only available for flows. For example, you would use this method to maintain continuous processing:
Select this option to prevent this flow from running if another instance is already running. This option is only available for flows.
Displays the name of the flow or procedure.
Add notes describing the purpose of the flow or procedure.
WebFOCUS | |
Feedback |