Defining types in transaction editor

About this task

Using the BTT Transaction editor, you can edit existing types and also define new types of data for the data elements that are part of your transaction.

Procedure

To define data for a new type, do the following steps:

  1. Open the type.transanction file. In the BTT Perspective, select from the Project Explorer the Definitions > Common Types entry and double click to open it.
  2. Right-click in the Type panel, and then click New Child. There are three types: simple field type, a keyed collection or an indexed collection.

  3. Right-click the type and create descriptors for it. One type can have multiple descriptors, and must contain one descriptor named "typeDefault". For a complete description on the property descriptors and how to implement them, go to Type Property Descriptors.

  4. To add either a converter or a validator, right-click on the type descriptor and select New Child. The converter and validator should be implemented before being able to select it as part of a type definition. The implementation class also determines the input parameters required for the conversion or validation; the values of these parameters are set as part of the type definition. For a complete description on the converters and validators and how to implement them, go to Converters and Validators.