Description:
This step is used to configure the output JSON file path.
Inputs
- filePath – output file path
- variableOrGlobal - variable/global to hold the virtual file path
Returns
- None
Usage:
Prerequisite:
ETL process engine service should be running to execute the ETL definitions.
Example:
Let’s build and execute the “clsOutputJSONDef” example.
- Create a new definition called “clsOutputJSONDef”
- Select the definition and click the “design” button
- Drag “clsInputExcel, clsTransformFormatNumberToString, and clsOutputJSON” step from the toolbox
- Connect the dots between the Start and other steps as above
- Define variables/globals required for the execution
- Click the "clsInputExcel" step to configure its "Required" properties. Provide a name to the step. Provide the input Excel file path on the application server. Select the ETL data schema from the drop-down list. Note: The column names in the schema should match the columns in the input file. Click the Save button.
- Click the "clsInputExcel" step to view its "Optional" properties. Select the Show Schema button. The popup window renders the schema columns as below. This function helps to understand the schema as a quick view.
- Click the "clsTransformFormatNumberToString" step to configure its "Required" properties. Provide the step name. Click the button to configure the transform list. Click the Save button.
- Click the "clsTransformFormatNumberToString" step to configure the transform list. The popup window is displayed for configuration. Click the Add Row (+) button to insert an empty row. Select the integer/value as the input source column. Select the string as the out-target column. Click the Save button. Click the Add Row button to insert multiple columns for transform.
- Click the "clsOutputJSON" step to configure its "Required" properties. Provide a name to the step. Provide the output JSON file path on the application server. Click the Save button.
- Click the "clsOutputJSON" step to configure its "Optional" properties. Provide a name to the step. Provide the variable/global reference to hold the virtual output 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 its properties. The “clsOutputJSON” step facilitates the transformation of the JSON output file. The variable/global holds the output file virtual path as below.
Definition Sample:
You may download the sample definition(s) from the link here and later import it (drag-drop) to your FlowWright ETL Process Definition (XML 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.