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 />

value). While these messages may be helpful to the user, they are not as helpful as messages created<br />

specifically for a template, tailored to the data requirement for that template.<br />

Data adaptors<br />

Some general guidelines for using adaptors are:<br />

• Do not use too many different adaptors as it can impede performance. You can use one data source<br />

adapter to populate multiple fields at once by populating off one database table with multiple<br />

columns. This way, the adaptor only runs once.<br />

• Keep adaptors simple and lightweight and keep the execution time of data source adaptors as<br />

short as possible.<br />

• Do not perform high latency calls within data source adaptors, such as long-running queries or slow<br />

web service invocations, as these calls can greatly impede performance of the UI.<br />

• If you plan to use more than one adaptor, concentrate on getting one adaptor to work before<br />

creating another.<br />

• When using a data source adaptor, make sure that the input is required and that the output is<br />

repeating.<br />

• When creating a custom data source adaptor, you have a choice of creating it as a class or<br />

service-based business object (SBO). If you create it as a class first it is much easier to validate and<br />

debug the adaptor. You can then convert the adaptor to an SBO if desired.<br />

The following table provides information on which templates or controls each adapter can be used<br />

with, guidelines for how best to use each type of adaptor, and important limitations.<br />

Table 4<br />

Adaptor Types and Uses<br />

Adaptor Type<br />

Item Initializer<br />

Available Templates<br />

or Controls<br />

Not available on folder<br />

information, process<br />

parameter, or task<br />

templates<br />

Available on these<br />

controls: Text Field,<br />

RichText, Number Field,<br />

Date Field, DateTime<br />

Field, CheckBox,<br />

CheckBox Group,<br />

Radio Button Group,<br />

ListBox, Dropdown<br />

List, Readonly Table,<br />

Bar Codes, Slider,<br />

Embedded Form, and<br />

Filter<br />

Best Uses/Limitations<br />

Use this adaptor if you want a value entered automatically in<br />

a field when the template instance is created.<br />

The out-of-the-box item initializer is configured to enter the<br />

current date/time in a date/time field. To use your own logic,<br />

create a custom initializer.<br />

When using an item initializer for an integer value in a<br />

number field, also specify a default value for the field.<br />

On a document view template, the initialization will only<br />

execute when the document view is used while importing<br />

documents in TaskSpace.<br />

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

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

Saved successfully!

Ooh no, something went wrong!