30.01.2015 Views

Designing processes - EMC Community Network

Designing processes - EMC Community Network

Designing processes - EMC Community Network

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating the User Interface<br />

11. In the input binding id field, select the xpath where the input value is stored (/employee_id). When<br />

you specify an input value, the adaptor returns database table values associated with that input value.<br />

In the Output data field, select the xpath where the ouput is stored (for the ID field, this would be<br />

/data/item/employee_id). This indicates the value in the database table that populates the field.<br />

12. Repeat the configuration on the Special tab for the other fields you want to populate from this<br />

adaptor. The settings are the same for each, except that the output data should match the field being<br />

populated. For example, for the E-mail Address field, you would select /data/item/email_address<br />

in the Output data field.<br />

13. Add the properties file for this JDBC adaptor to the \WEB-INF\classes directory.<br />

The properties file name corresponds to the adaptor name and in this case would be<br />

jdbc_GetEmployeeInformation.properties. The properties file specifies the location of the data<br />

source and standard JDBC configuration parameters, such as login credentials for the data source<br />

and the path to the JDBC driver. The properties file for this adaptor would be similar to:<br />

url=jdbc:mysql://localhost:3306/mysql<br />

driver=com.mysql.jdbc.Driver<br />

user=root<br />

password=forms (or password=pT9oeWTVuFI=)<br />

To encrypt the password, you can use the DFC encryption method:<br />

java com.documentum.fc.tools.RegistryPasswordUtils <br />

You have finished configuring the data source adaptor to populate the employee information fields.<br />

Performance<br />

When working with form templates, the following tips can improve performance:<br />

84 <strong>EMC</strong> Documentum xCelerated Composition Platform Version 1.6 Best Practices Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!