Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Export from Database

This activity exports data from a Database into an XML or a CSV file.

Activity Parameters

The Export from Database activity parameters can be provided by manual inserted values or via IN arguments or variables:

Parameters:

  • Destination Path (combo box control) (type: string): the path where the export (csv or xml) file will be created.
  • File Name (text box editor type) (type: string): the name of the XML file or CSV file that will be created. E.g. 'MySQLTableExport'.
  • File Type (combo box control) (type: string): the type of the file that will be created. For each of them a different set of parameters will be displayed.
  • Overwrite (combo box control) (type: string): whether to overwrite the file if it already exists.
  • Root Name (text box editor type) (type: string): the name of the root for the .xml file. This field should be completed only when XML is selected in the File Type field. As syntax, for example, xml_root can be used.
  • Table (text box editor type) (type: string): the table(s) from where the export will be made (accepts multiple values separated by comma).

The Read Only Output variable are the possible output values that the activity will provide:

  • Output (type: boolean): outputs True or False if the execution was successful or not.
 

 

Execution: the activity will create an export file of the table(s) settled in the Table field, in the specified folder:

 

 

 

 

Import into Database

This activity imports data into a Database from an XML or a CSV file.

Activity Parameters

The Import into Database activity parameters can be provided by manual inserted values or via IN arguments or variables:

Image RemovedImage Added

Parameters:

  • File Type (combo box control) (type: string): the type of the file that will be imported from. For each of them a different set of parameters will be displayedFlowster Studio provides by default CSV and XML types.
  • First Row Header (combo box control) (type: string): whether the CSV file includes the header as a first row or not. Import File Path (text box editor type) (type: string): the path where the file will be selected from, or choose it with the file browserIf, for example, it is used a CSV file obtained via the Export From Database activity, then leave True for this parameter (the Export From Database activity also exports the column names on the first row of the file).
  • Import File Path (text box editor type) (type: string): the path where the file will be selected from, or choose it with the file browser, by clicking the Image Added button.
  • Table (text box editor type) (type: string): the table name where the file will be imported. If left empty, it will take the 'Name' of the CSV File or the 'Root Name' from the XML File.

As mentioned above, the values for all the required parameters can be provided by IN arguments or variables. Below is an example of predefined arguments, ready to be used by the Import into Database activity:

Image Removed

  • the 'Root Name' from the XML File.

The Read Only Output variable are the possible output values that the activity will provide:

  • Output (type: boolean): outputs True or False if the execution was successful or not.
 

 

Execution: the activity will import the lines found in the given file:

Image Added

  • the initial table content:
    Image Added

  • the table content after deletion:

    Image Added