Property description

The objectTypes asset defines types of objects, which are the key building block of any application. Here, you define what attributes are assigned to an object and how they are displayed in the UI.

Minimal JSON

{
  "key": "",
  "name": ""
}
{
  "key": "document_set",
  "name": "Document set",
  "description": "A document set is an organized grouping of documentation objects.",
  "iconKey": "core_dataset",
  "tooltipAttributeTypeKey": "core_description",
  "attributeTypes": [
    {
      "key": "core_description"
    }
  ],
  "userRelationTypes": [
    {
      "key": "core_business_owner",
      "isSingleValue": false
    },
    {
      "key": "core_steward",
      "isSingleValue": false
    }
  ],
  "features": [
    {
      "key": "create_without_concept",
      "value": true
    }
  ],
  "graphDisplayLevels": [
    {
      "metamodelKey": "core#knowledge_graph",
      "displayLevelKey": "core#simple_object"
    }
  ],
  "domainTypeKeys": [
    "knowledge_documentation"
  ],
  "templates": {},
  "translations": []
}

Example taken from the core_documentation package.

Referencing an object type from another package

Object types that another package defines do not belong in objectTypes. Reference them instead, by {packageKey}#{objectTypeKey}, wherever you need them. For example, objectTypeRelations accepts the key of any installed object type, such as core_power_bi#report. Relation packages such as core_relations_kpi_power_bi list no object types at all.

Add an object type to objectTypes only when the package defines it. A key-only entry for an object type the package itself defines is a full declaration: its settings come from the entry, and any settings it leaves out, such as templates or iconKey, fall back to their defaults.

Some older packages still list another package’s object types in objectTypes instead. A key-only entry for such an object type is treated as a reference, not a declaration:

{
  "key": "core_google_bigquery#dataset"
}

Installing the package leaves that object type unchanged, including its templates, icon, module, and the components its templates use. If no object type with that key is installed yet, the entry creates one with default settings. An entry for another package’s object type that also sets any property besides key is a full declaration, overriding that object type’s settings.

Nested properties

PropertyDescriptionValuesMandatory
keyUnique key of the asset. Used for referencing in the same package or other packages using packageKey#assetKey.stringYes
nameName of the asset, used as the default EN translation.stringYes
attributeTypesArray of attribute types that are assigned to the object type. Attributes store information about the object. All attribute types must also be added in the object type template in order to be displayed and editable in the UI.arrayNo
categoryKeyKey of the object type’s category. Used when the object type doesn’t have its own template, allowing it to inherit the template from the category.stringNo
descriptionDescription of the asset.stringNo
domainTypeKeysKeys of the domain types the object type is assigned to. Domain types facilitate object search and simplify search phrasing for better readability.arrayNo
featuresArray of features, which configure object type behavior. E.g., creating an object without the need of a concept.arrayNo
graphDisplayLevelsArray of graph display levels configuring at what level the object type is displayed by default. Used mostly for data lineage.arrayNo
iconKeyKey of the icon used to visually represent the asset. Use predefined icons from Settings > Configuration > Icons, or define custom ones in the icons asset.stringNo
initialWorkflowStateKeyKey of the workflow state a new object of this type starts in, if that state belongs to the space application’s workflow; otherwise the object starts in the workflow’s init state. See Initial workflow state of new objects.stringNo
moduleKeyLegacy configuration.stringNo
notificationsArray of notifications sent to the user when a change is made to the object type.arrayNo
searchArray of search properties configuring if and how the object type appears in search results.arrayNo
stateCurrent status of the asset. Supported options are: active (asset is active and visible in the environment), inactive (asset is inactive and hidden, serves as a soft delete), hidden (asset is active but hidden in the environment).stringNo
templatesTemplates defining the appearance of the object type in the UI. Here, you can configure the object type page, object detail, and search facets specific to this object type.jsonNo
tooltipAttributeTypeKeyKey of the attribute type used as a tooltip for this object type. For example, used in search.stringNo
tooltipGraphMetamodelKeyKey of the graph metamodel that adds an “Open in {metamodel}” link to objects of this type.stringNo
translationsArray of translation keys and their definitions that determine how the text is displayed in the UI for the specific asset. For more information, see Translations.arrayNo
userRelationTypesArray of user relation types assigned to the object type. All user relation types must also be added to the object type template in order to be displayed and selectable in the UI.arrayNo

Initial workflow state of new objects

A new object starts in a state of its space application’s workflow. The workflow is chosen per space when the application is added, and an admin or space admin can change it later. So the same object type can start in different states in different spaces.

The initialWorkflowStateKey state belongs to the space application’s workflow when it is the workflow’s initStateKey, or the fromStateKey or toStateKey of one of its active transitions.

ConditionThe new object starts in
initialWorkflowStateKey is not setThe init state of the space application’s workflow
The state belongs to the space application’s workflowThe state set in initialWorkflowStateKey
The state does not belong to the space application’s workflowThe init state of the space application’s workflow
The space application uses an empty workflow (isEmpty: true), for example in a private spaceThe state set in initialWorkflowStateKey
Warning

A state that belongs to no workflow does not keep objects outside the workflow. Objects of that type start in the init state of the space application’s workflow and take part in its transitions.