Data Dictionary workflow
- An Author creates the Data Dictionary by either uploading a schema or from scratch.
- The Author creates letter and Interactive Communications based on the data dictionary and associates data dictionary elements in letter and Interactive Communications wherever required.
- An author can download sample data XML file, which is based on a data dictionary’s schema. The author can modify the sample data XML file, which can be associated as test data with the data dictionary. The same gets used during the letter preview.
- While previewing a letter, an Author chooses to preview the letter with data (Custom Preview). The letter opens prepopulated with the data that Author provided. This opens in the create correspondence interface. The Agent who is previewing this letter can modify the content, data, and attachments in this letter and can submit the final letter. For more information on creating letters, see Create correspondence.
Prerequisite
Install the Compatibility Package to view the Data Dictionaries option on the Forms page.
Create a data dictionary
You use the Data Dictionary Editor to create a data dictionary or you can upload an XSD schema file to create a data dictionary based on that. You can then extend the data dictionary by adding more required information, including fields. Regardless of how the data dictionary was created, the business process owner does not need knowledge of the back-end systems. The business process owner only needs knowledge of the domain objects, and their definitions, for their process.
-
Select Forms > Data Dictionaries.
-
Tap Create Data Dictionary.
-
In the Properties screen, add the following:
-
Title: (Optional) Enter the title for the data dictionary. Title needs not be unique and can have special characters and non-english characters. Letters and other document fragments are referred with their title (when available), such as in thumbnails and asset properties. Data dictionaries are referenced with their names and not titles.
-
Name: The unique name for the data dictionary. In the Name field, you can enter only English language characters, numbers, and hyphens. The Name field is automatically populated based on the Title field and the special characters, spaces, numbers, and non-English characters entered in the Title field are replaced with hyphens. Although the value in the Title field is automatically copied to the Name, you can edit the value.
-
Description: (Optional) Description of the data dictionary.
-
Tags: (Optional) To create custom tag, enter value in text field and press Enter. You can see your tag below text field of tags. When you save this text, the newly added tags also get created.
-
Extended Properties: (Optional) Tap Add Field to specify metadata attributes for your data dictionary. In the Property Name column, enter a unique property name. In the Value column, enter a value to associate with the property.
-
-
(Optional) To upload an XSD schema definition for your data dictionary, under the Data Dictionary Structure pane, tap Upload XML Schema. Browse to XSD file, select it, and tap Open. A Data Dictionary gets created based on the uploaded XML schema. You need to tweak display names and descriptions of the elements in the data dictionary. To do this, select the names of the elements by tapping them and edit their descriptions, display names, and other details in the fields in the right pane.
For more information on Computed DD Elements, see Computed Data Dictionary Elements.
NOTE
You can skip uploading the schema file and build your data dictionary from scratch using the user interface. To do this, skip this step and continue with the next steps. -
Tap Next.
-
In the Add Properties screen, add the elements to the data dictionary. You can also add/delete elements and edit their details if you have uploaded a schema to get a basic structure of the data dictionary.
You can tap the three dots on the right side of an element and add an element to the data dictionary structure.
Select either Composite Element, Collection Element, or Primitive Element.
- A Composite DDE contains other DDEs, which can be of type primitive, composite, or collection. For example, an address, which consists of a street address, city, province, country, and postal code.
- Primitive DDEs are elements such as strings, numbers, dates, and Boolean values that hold information such as a city name.
- A Collection is a list of similar Simple or Composite DDEs. For example, a customer with multiple locations, or different billing and shipping addresses.
Following are some rules for creating a data dictionary:
- Only composite type is allowed as top-level DDE in a data dictionary.
- Name, reference name, and element type are mandatory fields for a data dictionary and DDEs.
- The reference name must be unique.
- A parent DDE (composite) can’t have two children with the same name.
- Enums only contain primitive String types.
For more information on Composite, Collection, and Primitive elements and working with data dictionary elements, see Mapping Data Dictionary Elements to XML Schema.
For information on validations in Data Dictionary, see Data Dictionary Editor validations.
-
(Optional) After selecting an element, in the Advanced tab you can add properties (attributes). You can also tap Add Field and extend the properties of a DD element.
-
(Optional) You can remove any element by tapping the three dots on the right side of an element and selecting Delete.
NOTE
Deleting a composite/collection element with child nodes deletes its child nodes also. -
(Optional) Select an element in the Data Dictionary Structure pane, and in the Field and Variable List panel. Change, or add any required attributes associated to the element.
-
Tap Save.
Create copies of one or more data dictionary
To quickly create one or more data dictionaries with properties and elements similar to existing data dictionaries, you can copy and paste them.
- From the list of data dictionaries, select the appropriate data dictionaries. The UI displays the Copy icon.
- Tap Copy. The UI displays the Paste icon.
- Tap Paste. The Paste dialog appears. The system automatically assigns a names and titles to the new data dictionaries.
- If required, edit the Title and Name with which you want to save the copy of the data dictionary.
- Tap Paste. The copy of the data dictionary is created. Now you can make the required changes in your newly created data dictionary.
See the document fragments or documents that refer to a Data Dictionary element
While editing or viewing a data dictionary, you can see which elements in the data dictionary are referred in which Texts, Conditions, Letters, and Interactive Communications.
-
Do one of the following to edit the data dictionary:
- Hover over a data dictionary and tap Edit.
- Select a data dictionary and then tap Edit in the header.
- Hover over a data dictionary and tap Select. Then tap Edit in the header.
Or tap on a data dictionary to view it.
-
In the data dictionary, tap a simple element to select it. Composite and collection elements do not have references.
Along with Basic and Advanced properties of the element, Lent Content also appears.
-
Tap Lent Content.
The Lent Content tab appears with the following: Texts, Conditions, Letters, and Interactive Communications. Each of these headings also displays the number of references to the selected element.
-
Tap on a heading to see the name of the assets that refer to the element.
-
To view lent content for another element, tap the element.
-
To display an asset that refers to the element, tap on its name. The browser displays the asset, letter, or Interactive Communication.