Database configuration

Database configuration

The section below describes the database configuration for the From database workflow input, which is very seldomly used. For most you should consider the alternative: From database with custom SQL.

 

To use the database input component, database connection settings first have to be configured.

Log in as tenant administrator and select "settings" from the top navigation bar. Then jump to the section "database".

 

To configure a new database, first give it a unique name in the "name" field. This name is used to identify the database when using it in a workflow.

Under "connection", first select the database type that you want to use. If you cannot find your database on the list, then select "other". Once you select the database type, the fields "JDBC driver class" and "Hibernate dialect" will be pre-filled with typical values. You can edit these two values if they are not what you want. "JDBC driver class" is the Java class name of the database driver that you added a jar file for. "Hibernate dialect" is the dialect that should be used by the Hibernate ORM framework to generate SQL statements for your particular database type and version.

 

Connection URL

For "connection URL" specify the JDBC protocol URL used to connect with the database. The URL should be without username and password, since these are specified separately. The URL typically looks like this: jdbc:<DATABASE-TYPE>://<IP>:<PORT>/<DATABASE_ID>

For instance for MySQL it could be: jdbc:mysql://localhost:3306/interformdatabase

 

For IBM i the connection could be:jdbc:as400:MyIBMi/MYLIB;naming=system;translate binary=true

,where MyIBMi is the host name or IP-address of the IBM i and MYLIB is the library in which you want to create the table/file.

 

For IBM i: Please notice, that you need to either start journaling for the file/tables involved or you can also chose to turn off commitment control on the connection by adding this to the connection URL:

;transaction isolation=none

 

Finally enter the username and password for the user that should be used for connecting to the database.

 

The button "Test connection" can be used to test if the connection settings work. You will be presented with an error message if they do not.

 

The button "Create the tables" can be used to create the tables on the database.

 

The created tables are as shown in this entity relations diagram:

 

ng2_jobdb_diagram

 

Note that primary key ids are automatically generated on databases that support it (for instance MySQL).

    • Related Articles

    • From database

      A workflow can be initiated by a job record in a database table. Only relational databases are supported. Please notice, that this input only supports the very specific table layout as described in the section, Database configuration, where in input ...
    • Enrich XML from database

      Enrich XML from database It is possible to change the contents of an XML file and to add data from an external database with the advanced special workflow component: Enrich XML from database. An alternative to this component is ng.databaseLookup, ...
    • Database connections

      If you want InterFormNG2 to connect to a database in order to get input files for processing, then you need to configure the database as below. This section contains these topics: 1.Prerequisite 2.Configuration 3.Connection 4.Setup SQL via library ...
    • d.velop configuration

      If you have purchased the d.velop module for InterFormNG2, then you can output documents from InterFormNG2 into the d.velop application. A prerequisite for that is, that you have configured a connection to your d.velop application like below: In ...
    • Storing settings and resources in a database

      Storing settings and resources in a database: The InterFormNG2 settings and resources are as default stored in files in the file system, but it is possible to store the settings and resources in a database instead. This is covered in the sections ...