Goal

Save the text entered by the user via Direct Text Input in the Workflow to a defined location.

Table of Contents

Prerequisites

Final Workflow

The figure below shows the final layout of the workflow. Local_01_user-input_save_final_workflow

Creating and Filling out

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

workflow_system_echo_1

workflow_system_echo_3

2- [Nodes 2 and 4] - Add and fill out Source Nodes (Variables)

  • How:

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

3_text_nodes

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

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

Connection

  • Pay attention to the ports colors.

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

Local_01_save_user-input_con_1 Local_01_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

3- 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_01_save_user-input_reults

Done.