Everything you need to get started.
In this guide, we will see how to:
Before being able to integrate your database with your processes, you first need to configure Intalio|BPMS Designer connections to your database. Such connections require a JDBC driver to be loaded in Intalio|BPMS Designer for your specific database.
Before creating a JDBC connection, you must create a JDBC driver bundle that can be reused in several connections that can share the same JDBC driver. To create/edit/remow a JDBC driver bundle:
This gives you access to the window where you can manage your JDBC driver bundles.
Intalio|BPMS Designer already defines bundles for all supported database. You just need to edit the bundle for your database to add its JDBC driver. To edit a bundle:
The following screenshot shows a fully configured MySQL bundle:
To test your JDBC driver bundle:
If your bundle is properly configured, a pop up window should say "JDBC driver found". This does not test any connection to your database; it only checks that the driver to connect to your database is accessible by Intalio|BPMS Designer. Now you can create connections using this bundle.
To create a database connection:
This gives you access to the window where you can manage your database connections.
To create a new connection:
The following screenshot shows an example using a local MySQL database:
You can now test your database connection by selecting it and clicking the Test button. If your configuration is correct, a pop up window should say "Test successful!!!".
To create a new SQL query in Intalio|BPMS Designer:
For example, the screenshot below shows how a "query.sql" file will be created in the TestJDBC project (step #5).
This opens the SQL query editor. At this point you will typically need to use two views: "DB Explorer" and "SQL Results". If they are not visible already, you can make them visible by going in Window > Show View > Other... and then select them under the JDBC Connector node.
This runs the query using the selected connection and shows the results in the SQL results view as in the screenshot below:
You can also define SQL queries to use parameters that will be dynamically passed from your process. To do this:
The SQL Results view is updated according to your query, as in the screenshot below:
To reuse your query in your process:
This creates a WSDL file in your project at the chosen location. You can now reuse this WSDL file in any process just like any other processes. Use the mapper to define its input parameters and reuse the result set (see Invoke a SQL query from a process in Intalio|BPMS Designer )
After you have created a SQL query in your project as described above, you may reuse it in any process:
At runtime, you need to configure one JDBC connection per database your processes are connecting to.
To configure a connection, simply create a folder under [IntalioServer]/var/config/jdbc-connector.
In the newly created folder, create a file 'connection.properties' with the following content:
#The database type
#Available types - DER10 for DERBY, MYS5 for MySQL , ORA9 for Oracle.
com.intalio.bpms.connector.jdbc.db.type=DER10
# Data source type: "jndi" or "driver"
com.intalio.bpms.connector.jdbc.ds.type=jndi
# JDNI path for data source (only used if data source type is "jndi")
com.intalio.bpms.connector.jdbc.jndi=jdbc/DBName
# Whether to allow dynamic (ad-hoc) queries or restrict to predefined, server-side, set of queries
com.intalio.bpms.connector.jdbc.allowDynamicSQL=true
# JDBC driver data source (only used if data source type is "driver")
com.intalio.bpms.connector.jdbc.driver=
com.intalio.bpms.connector.jdbc.url=
# Other JDBC driver specific properties here;
# these will be passed to underlying driver as-is
user=
password=
You can choose to configure your JDBC Connection by either retrieving a datasource already configured via JNDI or by using the driver directly. By default a JDBC Connection is configured for the BPMSDB which is the master database for the Intalio|BPMS runtime.
For development, the easiest approach is to use the "driver" type. Here is an example to connect to a MySQL database:
#The database type
#Available types - DER10 for DERBY, MYS5 for MySQL , ORA9 for Oracle.
com.intalio.bpms.connector.jdbc.db.type=MYS5
# Data source type: "jndi" or "driver"
com.intalio.bpms.connector.jdbc.ds.type=driver
# Whether to allow dynamic (ad-hoc) queries or restrict to predefined, server-side, set of queries
com.intalio.bpms.connector.jdbc.allowDynamicSQL=true
# JDBC driver data source (only used if data source type is "driver")
com.intalio.bpms.connector.jdbc.driver=com.mysql.jdbc.Driver
com.intalio.bpms.connector.jdbc.url=jdbc:mysql://localhost/myDatabase
# Other JDBC driver specific properties here;
# these will be passed to underlying driver as-is
user=jack
password=rabbit
Additionally, you must place the JDBC driver .jar file under the WEB-INF/lib directory of the JDBC connector. On Geronimo this directory corresponds to: %GERONIMO_HOME%\repository\ode\ode-war\5.0.xx\ode-war-5.0.xx.war\WEB-INF\lib.
Once you have saved your configuration and added your JDBC driver .jar, you are ready to go! Note that it takes a few seconds for Intalio|BPMS Server to load new JDBC connector configurations.
Copyright © Intalio, 1999-2010.