Goal

Save the text entered by the user via Text Input through an Interactive Dialog to a defined location.

Table of Contents

Prerequisites

Final Workflow

The figure below shows the final layout of the workflow. Local_02_save_user_input_final_workflow

Creating and Filling out

1- [Node 1] - Add a UserInput: Text Node

  • How:

    • In the workspace, right-click and select Add User InputUserInputText (Built-in Node).
  • This node will allow the user to type text directly into the workflow.

user_input_text

2- [Node 2] - Add a workflow-nodes system echo Node

workflow_system_echo_1

workflow_system_echo_3

3- [Node 3] - Add a File Output Node

  • How:

    • In the workspace, right-click and select Add File IOFileOutPut (Built-in Node).

add_file_io_output

4- [Nodes 4, 5, 6] - Add and fill out Source Nodes (Variables)

  • How:

    • In the workspace, right-click and select Add Source → String (4, 5, 6).

3_text_nodes

  • Node 4 : Prompt (e.g., Enter the Text:)
  • Node 5 : Default Input. (e.g., Polis Cluster of Excellence)
  • Node 6 : Set Output File Path. (If the file does not exist, it will be created automatically.)

Connection

  • Pay attention to the ports colors.

    • Variabls (light green)[1]
    • stdin/stdout ports (dark green) [2]

Local_02_save_user_input_con_1 Local_02_save_user_input_con_2

Running

1- Save the workflow by pushing Play button.

running_1

2- Start running the workflow by using Start button.

running_2

  1. Enter the desired text
    • "Enter the Text" related to node 4

Local_02_save_user-input_run_3

4- Status: Finished

running_4

4- The user-provided text is stored in a file at the specified path.

Results

The figure below shows the results. Local_02_save_user-input_run_results

Done.