Description:
This step writes text content to create a TEXT file.
Inputs
- contentVariable -Variable/Global that holds the content
- txtVarGlobalFilePath – Variable/Global that holds the output file path
Returns
- True – step executed successfully
- False – step failed to execute
Usage:

Example:
Let’s build and execute the “writeTxtFileDef” example.
- Create a new definition called “writeTxtFileDef.”
- Select the definition and click the “design” button
- Drag a “updateVariable, writeFile” step from the toolbox
- Connect the dots between the Start and the other steps
- Configure a variable/global to store the text and the output file path
- Click the “updateVariable” step to configure its “Required” properties. Provide a name to the step. Click the Save button.

- Click the “updateVariable” step to configure its “Optional” properties. Click the button to configure multiple variables and values. Provide the variable and value. Select No for Has Expression. Click the Save button.

- Click the “writeFile” step to configure its “Settings” properties. Provide a name to the step. Provide the variable/global reference that holds the Text content. Provide the variable/global that holds the output file path. Click the Save button.

- The “Logging” setting configuration is necessary for documentation and also measures the workflow progress and the percent complete. This is achieved by configuring the step state and percent fields individually, as shown in the images below. Configure the “Logging” using the following properties.

- Save the process definition, create a new instance, and execute. Render the process instance. Click on the process step to view the properties. The step should write the contents from the variable/global to the specified output TEXT file.

Definition Sample:
You may download the ZIP file and extract the sample definition(s) from the link here and later import it (drag-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.
NOTE: Please verify and complete the process steps for any missing configurations, such as file path references and database connections after import. Then, save the definition to confirm the changes.