Using_DataSource_In_IBM_BPM_Process_Designer - uoForms/ebc6230-bpm GitHub Wiki

Using the created Data Source in Process Designer

Prior Steps:

Please see the related tutorials below.

Once these two above steps are performed and Data Source is ready to be used, following steps are to be followed to test the jdbc connection created in (2)

(a) Create a General System Service. This option is available under Implementation

Quickforms Diagram

Quickforms Diagram

Quickforms Diagram

(b) Drag ‘SQL Execute Statement’ which is seen under ‘Implementation’ listed under ‘ToolKits’. Connect using flowlines

Quickforms Diagram

Quickforms Diagram

(C) Make the necessary changes as seen below, under the propert section’s Data Mapping:

Sql: "Select getdate()";

Return Type: "XMLElement"

DataSourceName:"jdbc/bpmtest"

Create variables suitably:

Quickforms Diagram

Initialize the String value to map properly with the XMLElement.

Quickforms Diagram

Map this result XMLElement variable in the Propery section as seen below:

Quickforms Diagram

(c) Run the process in the debug mode to step through the code: Select ‘Debug’ option which is right next to the ‘Run’ button as seen in the above screenshot.

Quickforms Diagram

Click on StepOver to traverse to the result:

Quickforms Diagram

With the above result, we can confirm that the connection to the DB is successfully established.