5.6   Service Data Area

In the Data Area tab of the Service Editor, it is possible to define data elements that are available for the current service.

Figure 36   An Example of Service Data Area

The parameters that can be set in the data area are described in Table 40.

Table 40    Properties for the Data Area

Property

Description

Comment/Available Fields

Name

The name of the data element.

The name must be unique within the service.

Element Type

Single value - A single element is defined, of any of the data types supported by ERE.

  • Value Type - A drop-down menu from which the data type of the element is chosen. The available value types are the same as those shown in Table 30.

  • Value Class Factory - If a data type of the type Object is chosen, the path to the factory that defines the value classes is entered here.

  • Value Class - If a data type of the type Object is chosen, the path to a class that defines the Java type associated with the value is entered here.

  • Value - The value of the data element. Only values that agree with data type chosen in Value Type can be entered. If the value type is an object, the Value is a string that represents a value of the type in the Value Class.

Array - An array is defined, where the values in the array can be of any of the data types supported by ERE.

Array Values - An array editor, in which the array of values for the element is entered. Only values that agree with data type chosen in Value Type can be entered.

Map - A map of values is defined, where the key type and map values can be of any of the data types supported by ERE.

  • Key Type - A drop-down menu from which the data type of the map key is chosen.

  • Map Values - A map editor, in which the map of values for the element is entered. Only keys and data values that agree with data type chosen in Key Type and Value Type can be entered.

XML fragment - An XML fragment is defined.

XML fragment - The fragment must contain one, and only one, root node.

A new data element is added to the service by using the Add button. A data element is removed from the service by using the Delete button.

An existing data element can be edited by selecting the element from the Data Element list. If a data element is entered with an invalid format or incomplete information, a pop-up appears with an error message when Commit is chosen.

The changes are discarded and the old values retained when the Cancel button is chosen.

The changes are first implemented in the service when the service is saved.