Description:
This step converts Excel (.xls,.xlsx,.csv) or Text (.txt) file content to XML file
Inputs
- excelOrTxtVariable - Variable/Global that holds the Excel or Txt file path
- isFirstColumnHeader - First Column is Header
- xmlFilePath - Variable/Global that stores the XML file path
Returns
- True – step executed successfully
- False – step failed to execute
Usage:
Example:
Let’s build and execute the “ExcelOrTxtToXMLDef” example.
- Create a new definition called “ExcelOrTxtToXMLDef”
- Select the definition and click the “design” button
- Drag an “ExcelOrTxtToXML” step to the canvas
- Connect the dots between the start and “ExcelOrTxtToXML” step
- Configure a variable/global to store the result after execution
- Click the "ExcelOrTxtToXML" step to configure its "Settings" properties. Provide a name to the step. Provide a variable/global or file path that holds the XLS or TXT file path on the application server. Provide a variable/global to store the XML file path after conversion.
- Click the "ExcelOrTxtToXML" step to configure its "Advanced" properties.
- 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 process instance, and execute. Select and render the process instance to check the step properties. The process step should create an XML file as configured.
Definition Sample:
You may download 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.
Click here to download the sample file.
You may also use the “ExcelOrTxtToXML” process step to loop through all the values in the XML file as below.
Click here to download this sample file.