Conditionally Importing Data from Databases
At times you may not want to import all the data found in a particular database query, but only a subset of it.
Rulex makes this possible through the Conditional Import task.
This task is the only Rulex import task that accepts input data. This data contains the filters you want to apply in the import operation.
You must have created a flow;
You must have already imported the required data.
you must have chosen if you need a Saved or Custom source:
If you are creating a Saved source, go to the Explorer, switch the Flow filter off and select Add new Database by hovering over the plus button.
If you are using a Custom source, open the Import from Database task or the Conditional Import task.
You must have installed the ODBC drivers (64-bit) corresponding to the database you want to import from.
Drag the Conditional Import task onto the central stage.
Double click the task.
In the Database parameters section, configure the required parameters as described in the table below.
Click Connect: a connection is established with the database and the Table list box is filled with the list of all the available tables which are presented in the database.
Configure the general options as described in the table below.
Configure the advanced options, as described in the table below, to specify any filters, or define which attributes will be imported.
Save and compute the task.
Conditional import options
Choose if you want to use a Saved or a Custom source.
The database platform type. The following platforms are currently supported:
Unicode is also supported, if its corresponding driver is installed.
Bulk size for prefetch
Retrieves blocks of data of the size specified.
If selected, the search operation will be performed in case sensitive mode.
Select to remove spaces from strings. For example, the string ” age ” is then imported as “age”.
Use old computation data if the source table is not available
Select to use data from the previous computation if the source table is not available.
Repeat query execution every
Select to repeat the query until the required number of records are retrieved (checkdata).
Subsequently set the frequency in seconds (sleeptime) with which the query must be performed and the number of records (nres) that must be retrieved.
The preview of the imported table. You can choose how many rows to display in the Number of records to preview section.
The left-hand list displays all the available attributes, which can be used to filter results. These attributes can be ordered in the corresponding option below to narrow down the list when there are many attributes. It is also possible to search for specific attributes.
Drag and drop the attributes you want to use to filter the imported results onto this pane from the Available Attributes list on the left.
The attribute names in Rulex must perfectly correspond to the attribute names in the resulting query.
Drag and drop the attributes you want to import onto this pane from the Available Attributes list on the left.
If no attributes are specified, all attributes will be imported.
IBM DB2 AS400
Azure Synapse Analytics
OpenText Gupta SQLBase
Generic ODBC Connection