--- title: "Enumerations" slug: "core-dynamic-enum-definition" updated: 2026-05-13T13:47:56Z published: 2026-05-13T13:48:18Z canonical: "docs.lobstersoftware.com/core-dynamic-enum-definition" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Enumerations ## Define and use enumerations [Enumerations](/v1/docs/en/core-dynamic-enum-definition) are used to define *enumeration types*, i.e. data types that store a selection decision from a list of alternative options defined for the *enumeration type* as a value. > [!NOTE] > Degrees of freedom for enumerations > > The following cases must be distinguished with regard to "customizability" for [Enumerations](/v1/docs/en/core-dynamic-enum-definition): > > - The enumeration as a whole is read-only. No *enumeration values* or direct properties of the enumeration can be edited. > - This applies to enumerations *predefined* by the system ([Print document type](/v1/docs/en/print-print-document-type), [Mail state](/v1/docs/en/core-mail-states), etc.) that have the "Internal dynamic enumeration" indicator (`systemDynamicEnum`). > - The definition of the enumeration can be opened via "Edit". However, the "Save" function is then not available in the detailed view. > - Customized extensions are not provided. > - The enumeration cannot be deleted, but *enumeration values* can be edited (created, changed and deleted if necessary). > - This concerns enumerations *predefined* by the system (e.g. [Locale](/v1/docs/en/core-locale), [Country](/v1/docs/en/core-country), [Salutation](/v1/docs/en/base-salutation), [Working state](/v1/docs/en/base-working-states), [Company type](/v1/docs/en/base-company-type), [Number range type](/v1/docs/en/core-number-range-type) etc.), whose e*numeration values* can and should be adapted to specific requirements. > - An important fraction within this group are enumerations that define "sub-types" for predefined typed attribute types ([Text type](/v1/docs/en/base-text-type), [Numeric types](/v1/docs/en/base-numeric-value-type), [Reference type](/v1/docs/en/base-reference-type), [Flag type](/v1/docs/en/base-flag-types), [Date type](/v1/docs/en/base-date-type), [Contact type](/v1/docs/en/base-contact-type), etc.). > - For this purpose, the configuration for *enumeration values* provides the "Plural attribute" (`pluralAttribute`) option, which regulates for each sub-type whether it can be assigned to the same owner once or multiple times. > - The "Enumeration name" (`enumName`) of predefined enumerations always refers to a *namespace* that begins with the string `de.lobster.` (e.g. `de.lobster.scm.base.address.Salutation` for the [Salutation](/v1/docs/en/base-salutation)). > - Many of the relevant enumerations contain predefined *enumeration values* ex works, which can either be adopted or replaced or supplemented as desired. > - The enumeration as a whole is customized so that there is full access to all properties and the *enumeration values* it contains. > - This applies to [Enumerations](/v1/docs/en/core-dynamic-enum-definition) that were newly created by authorized [Users](/v1/docs/en/base-user) after installation. > - User-defined [Enumerations](/v1/docs/en/core-dynamic-enum-definition) can refer to a [Custom enum configuration](/v1/docs/en/custom-custom-dynamic-enum-configuration-type), which can be used to assign specific properties to *enumeration values*. > - If a user-defined enumeration does not refer to a [Custom enum configuration](/v1/docs/en/custom-custom-dynamic-enum-configuration-type), it is assigned the configuration type "Typed attribute (configuration)" (`TypedAttributeConfiguration`) by default. > - This type provides the "Plural attribute" (`pluralAttribute`) option in the event that the enumeration is to be used to define "sub-types" for a [Custom typed attribute](/v1/docs/en/custom-custom-typed-attribute-type). > > --- > > **IMPORTANT:** Regardless of whether [Enumerations](/v1/docs/en/core-dynamic-enum-definition) are predefined or customized, deleting *enumeration values* from the enumeration (as well as the enumeration itself) can be problematic if they have already been used "operationally" so that transaction data and/or configuration refer to the values to be deleted. ### View enumeration definition and edit if necessary The menu item for [Enumerations](/v1/docs/en/core-dynamic-enum-definition) opens an overview that lists all enumerations defined in the system: ![images/download/attachments/201673175/image-2025-4-14_17-50-39-version-1-modificationdate-1746776941040-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-14_17-50-39-version-1-modificationdate-1746776941040-api-v2.png) - In the screenshot, a filter has been set for the **Enumeration name** (`enumName`) column, which lists two enumerations (see [Mode of transport](/v1/docs/en/base-mode-of-transport) vs. [Modes of transport](/v1/docs/en/tsmt-mode-of-transport)) with the identical **Enumeration label** "Transport". - While the **Enumeration name** is the same localisation for the data type based on the enumeration, the unique fully qualified class name appears in the **Enumeration name** column. - The following steps relate to the second list entry highlighted in the image. Double-clicking in the list field opens the detailed view for the relevant enumeration in a new view, as does clicking on the **Edit** *ribbon button* (in conjunction with a selection). More specifically, a "Combined view" appears, which combines the header data of the enumeration (**Enumeration name**, **Description** – if applicable) with a detail area for editing *enumeration values*, which are displayed below as a list: ![images/download/attachments/201673175/image-2025-4-14_17-51-49-version-1-modificationdate-1746776941036-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-14_17-51-49-version-1-modificationdate-1746776941036-api-v2.png) **NOTE:** The [Mode of transport](/v1/docs/en/base-mode-of-transport) was selected here as an example because it only provides minimal configuration options for *enumeration values*. [Enumerations](/v1/docs/en/core-dynamic-enum-definition) can provide more or less complex configuration options for *enumeration values*, which then appear in the detail area of the view. The data model for *enumeration values* therefore contains a `configuration` field to which a data object of the relevant *configuration type* must be assigned as a value. - For the [Mode of transport](/v1/docs/en/base-mode-of-transport), only the **Icon URI** (`iconUri`) field affects the (general) `configuration` type used (`DynamicEnumConfiguration`). - The **Ordinal** (`ordinal`), **Name** (`name`) and **Description** (`description`) fields are part of the parent data structure (`DynamicEnumValueDefinition`). - The **Localized name** is assigned via the [Localization](/v1/docs/en/core-localization-entry) or [Company specific localization](/v1/docs/en/core-owner-based-localization-overrides) and is not saved in the enumeration value. ### Edit enumeration values in a predefined enumeration Example: [Mode of transport](/v1/docs/en/base-mode-of-transport) (predefined enumeration, with editable enumeration values). ![images/download/attachments/201673175/image-2025-4-14_17-54-50-version-1-modificationdate-1746776941030-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-14_17-54-50-version-1-modificationdate-1746776941030-api-v2.png) The screenshot shows a list with definitions for values of the [Mode of transport](/v1/docs/en/base-mode-of-transport) enumeration, with the options stored "ex works" in **Lobster Data Platform/Orchestration**. Each selection option identifies a unique **Name** (`name`) within the enumeration, whereby the enumeration here reflects the terminology and selection for the "transport mode" (`ROAD`, `SEA`, `AIR`, `RAIL`) commonly used in freight logistics. - This **Name** appears, for example, in the XML structure of an entity if it has a field in which a selection for the [Mode of transport](/v1/docs/en/base-mode-of-transport) is saved (see [Enumeration field](/v1/docs/en/custom-custom-denum-field)). Typically, however, the **Name** is not stored as a `String` in the corresponding database table when the relevant entity is saved, but rather the **Ordinal** – which is also clearly assigned within the enumeration. - The **Ordinal** (`ordinal`) is automatically assigned during the definition of the enumeration and is therefore usually "forever" in a (1:1) relationship with the corresponding **Name**. - The **Ordinal** values define the ranking of the values within the enumeration, which can be decisive if, for example, a [Sorting](/v1/docs/en/core-search-order) in a [Search](/v1/docs/en/core-search) or a *rank compare* in an [Entity property rule](/v1/docs/en/core-entity-property-rule) (see [Compare with](/v1/docs/en/core-compareable-matcher)) refers directly to enumeration values. The **Localized name** is subsequently assigned in **Lobster Data Platform/Orchestration** via the [Localization](/v1/docs/en/core-localization-entry) or [Company specific localization](/v1/docs/en/core-owner-based-localization-overrides) in order to be able to present enumeration values as meaningfully and comprehensibly as possible. - There is no obligation to create a localization for each enumeration value. However, [Localization](/v1/docs/en/core-localization-entry) automatically displays entries for new enumeration values as soon as the enumeration is saved. - If there is no localization for an enumeration value, the **Name** appears as the default value in many places (possibly in slightly "transformed" notation, e.g. "Road" instead of `ROAD`, unfortunately also "Mb" instead of `MB`). - In order to avoid the possibly undesirable transformation of abbreviations in the **Name** field, a localization (e.g. "MB") should be stored for "English" at least. This "spelling" then applies as a fallback for all languages not localized elsewhere. - It is often also possible to control whether the internal name or the localization (or both) identifies an enumeration value in the specific context of use – e.g. for the label in the dropdown of a [Combobox](/v1/docs/en/fre-combo-box-vo) element for a form. The following screenshot shows the detail screen for editing an *enumeration value* selected in the list area with form elements for all properties that are supported for the [Mode of transport](/v1/docs/en/base-mode-of-transport): | - The **Name** (`ROAD`) appears read-only after saving to protect incoming references from careless changes. The "Unlock" button (left) cancels this lock. - An input field for the **Localization** is displayed for each supported [Locale](/v1/docs/en/core-locale), which is transferred to the [Localization](/v1/docs/en/core-localization-entry) when it is saved. - A **Description** can optionally be stored for each enumeration value, which is not intended for the "end user" but can only be read in the context of the definition. - The **Icon URI** can optionally refer to an icon that is associated with the enumeration value, for example in the label definition for a [Combobox](/v1/docs/en/fre-combo-box-vo) or in a context menu. | ![images/download/attachments/201673175/image-2025-4-14_17-55-17-version-1-modificationdate-1746776941027-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-14_17-55-17-version-1-modificationdate-1746776941027-api-v2.png) | | --- | --- | ### Add and remove enumeration values - The **New** button (green in the screenshot above) adds a further definition to the list of *enumeration values* for the [Mode of transport](/v1/docs/en/base-mode-of-transport). - The **Remove** button (red in the screenshot above) removes the definition for a selected *enumeration value* from the list. Extend enumerations: If predefined [Enumerations](/v1/docs/en/core-dynamic-enum-definition) are not provided by the system as read-only, the value list contained can be extended if required. - Whether an additional [Mode of transport](/v1/docs/en/base-mode-of-transport) (such as `HYPERLOOP` or `UAV`) needs to be added in the future should not be a concern today when defining the enumeration values for the [Mode of transport](/v1/docs/en/base-mode-of-transport). As soon as the additional type becomes relevant, it can simply be added. - Adjustments to configurations (e.g. in [Input forms](/v1/docs/en/base-entity-form) or [Association criteria](/v1/docs/en/core-association-criteria)) may be required sporadically as a result of an extension. - However, interventions in the data model of entities that use the [Mode of transport](/v1/docs/en/base-mode-of-transport) should not be necessary when a new option is added. Remove values from enumerations: It is also possible to remove values from an enumeration. There are also enumerations in which entries provided by the system are protected, while entries added as extensions are deleted. **IMPORTANT:** The removal of deletable enumeration values should ideally take place before [Users](/v1/docs/en/base-user) (including configurators) are given the opportunity to "work" with the configured values. - In many cases, the deletion of enumeration values is automatically blocked as long as there are still incoming references for the enumeration value to be deleted (e.g. via value resolvers such as an [Enumeration](/v1/docs/en/core-dynamic-enum-value-editor)). - However, only current configurations are taken into account and not any existing "historical" statuses ([History (Configurations)](/v1/docs/en/orchestration-change-history-configurations)), which could possibly be restored. To "remove from the catalog" enumeration values that are already in use or were used in the past, dynamic enum filters often offer viable solutions for the future. - [Association criteria](/v1/docs/en/core-association-criteria) can be used to control in detail in which situations, for whom and, if applicable, with which time windows restrictions should apply to the selection and display of enumeration values. ## Localize enumerations The localization of the enumeration types takes place in the [Localization](/v1/docs/en/core-localization-entry) and, if necessary, via [Company specific localization](/v1/docs/en/core-owner-based-localization-overrides) and affects the name of the enumeration as a whole, as well as the plain text for each individual element. For the example of a custom dynamic enumeration for "cardinal points", the localization of the *enumeration values* could look like this: ![images/download/attachments/201673175/image-2025-4-14_17-56-20-version-1-modificationdate-1746776941012-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-14_17-56-20-version-1-modificationdate-1746776941012-api-v2.png) The internal **Enumeration name**, for which the simple character string `ORIENTATION` was selected here, is used as the **Resource bundle**. - For predefined enumerations, a usually longer class name appears here, e.g. `de.lobster.scm.base.bto.ModeOfTransport` for the [Mode of transport](/v1/docs/en/base-mode-of-transport) (see above). - The name of the enumeration as a whole can be localized via the ***Resource name*** `$name`. - Localizations for *enumeration values* define their **Names** as the value for the ***Resource name*** in the same ***Resource bundle***. **NOTE:** The elements of an enumeration appear in selection elements of forms in ascending alphabetical order according to localisation. To ensure that the cardinal points appear in the usual order (clockwise starting with North), an index number has been placed in front of them. This also ensures that the options appear in the same order regardless of the language selection. ## Enumerations with more complex configuration for enumeration values Some of the dynamic enumerations provided by the system also offer specific parameters that can be assigned individual values for each element. For example, parameters for conversion functions are provided for [Units](/v1/docs/en/core-unit) (see columns "Alias", "Base" etc. in the screenshot below), each [Working state](/v1/docs/en/base-working-states) can be linked to a hexadecimal colour value and individual check functions and message texts can be stored for each [Delivery instruction](/v1/docs/en/base-delivery-instruction) type. [Detailseiten für vordefinierte Dynamischen Aufzählungen](?c1753032354612#src-201673175_safe-id-aWQtLkF1ZnrDpGhsdW5nZW52NC4xMy4wLVBSRVNFVF9MSU5LUw) are listed at the bottom of this page. If available, the parameters are also described there. The following screenshot shows an example of the configuration interface for the [Length unit](/v1/docs/en/core-length-unit) enumeration, which contains specific fields for [Units](/v1/docs/en/core-unit) (**Alias**, **Base**, etc.): ![images/download/attachments/201673175/image-2025-4-14_17-57-26-version-1-modificationdate-1746776941006-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-4-14_17-57-26-version-1-modificationdate-1746776941006-api-v2.png) ## Detail pages for predefined dynamic enumerations - [Common business object type](/v1/docs/en/cmn-common-bto-type) - [Salutation](/v1/docs/en/base-salutation) - [Working state](/v1/docs/en/base-working-states) - [Order type](/v1/docs/en/ord-order-type) - [Date type](/v1/docs/en/base-date-type) - [Document reference type](/v1/docs/en/doc-document-reference-type) - [Document type](/v1/docs/en/doc-document-type) - [Print document category](/v1/docs/en/print-print-document-kind) - [Print document mode](/v1/docs/en/print-print-document-mode) - [Print document type](/v1/docs/en/print-print-document-type) - [Print type](/v1/docs/en/print-print-type) - [Custom action event](/v1/docs/en/core-custom-action-events) - [Units](/v1/docs/en/core-unit) - [Area unit](/v1/docs/en/core-area-unit) - [Currency](/v1/docs/en/core-currency) - [Length unit](/v1/docs/en/core-length-unit) - [Quantity unit](/v1/docs/en/core-quantity-unit) - [Size unit](/v1/docs/en/core-size-unit) - [Temperature unit](/v1/docs/en/core-temperature-unit) - [Time unit](/v1/docs/en/core-time-unit) - [Volume unit](/v1/docs/en/core-volume-unit) - [Weight & mass units](/v1/docs/en/core-weight-and-mass-unit) - [External link type](/v1/docs/en/core-external-link-type) - [External search (dynamic enumeration)](/v1/docs/en/core-external-search-type) - [Type of vehicle](/v1/docs/en/tsmt-type-of-vehicle) - [Company meta type](/v1/docs/en/base-company-meta-type) - [Company type](/v1/docs/en/base-company-type) - [Free enum type](/v1/docs/en/base-free-enum-type) - [Dangerous substance](/v1/docs/en/base-dg-dg-substance) - [Dangerous goods packaging category](/v1/docs/en/base-dg-dg-package-category) - [Dangerous goods packaging material](/v1/docs/en/base-dg-dg-package-material) - [Dangerous goods packaging type](/v1/docs/en/base-dg-dg-package-type) - [Incident source](/v1/docs/en/scem-incident-source) - [Incident severity](/v1/docs/en/scem-incident-severity) - [Incident status](/v1/docs/en/scem-incident-state) - [Incident type](/v1/docs/en/scem-incident-types) - [Incoterms](/v1/docs/en/base-bto-incoterm) - [Calendar exception type](/v1/docs/en/base-calendar-calendar-exception-type) - [Flag type](/v1/docs/en/base-flag-types) - [Communication type](/v1/docs/en/base-communication-type) - [Contact type](/v1/docs/en/base-contact-type) - [Loading aids](/v1/docs/en/base-loading-aid) - [Country](/v1/docs/en/core-country) - [Delivery instruction](/v1/docs/en/base-delivery-instruction) - [Mail state](/v1/docs/en/core-mail-states) - [Manifest type](/v1/docs/en/mfst-manifest-type) - [Number range type](/v1/docs/en/core-number-range-type) - [Numeric types](/v1/docs/en/base-numeric-value-type) - [Line item type](/v1/docs/en/base-line-item-type) - [Price context](/v1/docs/en/core-price-context) - [Product ID context](/v1/docs/en/base-product-id-context) - [Product ID type](/v1/docs/en/base-product-id-type) - [Product catalog type](/v1/docs/en/base-product-catalog-type) - [Reference type](/v1/docs/en/base-reference-type) - [Page format](/v1/docs/en/print-page-format) - [Shipment type](/v1/docs/en/shp-shipment-type) - [Service type](/v1/docs/en/base-service-type) - [Locale](/v1/docs/en/core-locale) - [Tax rate](/v1/docs/en/core-tax-rate) - [Tag category](/v1/docs/en/core-tag-category) - [Text type](/v1/docs/en/base-text-type) - [Tracking state type](/v1/docs/en/base-ts-tracking-status-type) - [Mode of transport](/v1/docs/en/base-mode-of-transport) - [Modes of transport](/v1/docs/en/tsmt-mode-of-transport) - [Date range type](/v1/docs/en/date-date-range-value-type) - [Date time type](/v1/docs/en/date-date-time-value-type) - [Linked entity type](/v1/docs/en/base-linked-entity-type) - [Linked line item type](/v1/docs/en/base-linked-line-item-type) - [Type of packaging](/v1/docs/en/base-type-of-packaging) - [Package types](/v1/docs/en/tsmt-package-type) - [Kinds of goods](/v1/docs/en/tsmt-kind-of-goods)