Example: Add input parameters to a flow

更新时间:
复制 MD 格式

Example: Add input parameters to a flow

Scenario description

Use the visualization feature to orchestrate a flow and add input parameters using the parameter panel.

For a detailed demonstration, watch the following video tutorial:

Step 1: Use the parameter panel

Note: This section provides advanced steps for the Example: Aggregate data from multiple Excel files tutorial.

1. On the top menu bar, choose View and make sure that the Parameter Panel option is selected. In the lower-left corner, click the Parameter Panel tab. In the Parameter Panel window that opens, click the plus sign (+) button to add a parameter. Set the parameter type to Open Folder, and then click the Settings button.

2. In the Set Default Value window, set Parameter Name to "Folder for tables to aggregate". In the Default Value field, click the button on the right, select the folder that contains the tables to aggregate, and then click OK.

3. Return to the canvas. Add a Get Project Parameter Panel Information component before the Get File List component. In the properties area of the new component, set Parameter Name to "Folder for tables to aggregate". This is the parameter name that you configured in the previous step.

4. In the Get File List component, clear the Target Folder Path in the properties area. Set the path to `v_project_param_value_1`, which is the output of the Get Project Parameter Panel Information component. Run the flow to view the result.

Note

Tip: When you parameterize the path, you do not need to change component properties for each run. You can simply change the value in the parameter panel instead. This makes the published application more convenient to use.