Please enable JavaScript to view this site.

Process Designer

Navigation: PHP API > Work with databases

Access external databases (getDBConnection)

Scroll Prev Top Next More

This function allows you to access external databases.

As name please enter the name of a previously created external database connections. In case it is a global connection, first you have to assign it to the process in the process designer.

Parameter

Type

Description

$connectionName

string

Name of the external database connection

This function returns an object of the JobDB type, which can then be used to query the external database using various SQL statements.

In case of an error a JobRouterException is thrown.

Example:

$jobDB = $this->getDBConnection('DOCUWARE');