Property description
The objectTypes asset defines types of objects, which are the key building block of any application. Here, we 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.
Nested properties
| Property | Description | Values | Mandatory |
|---|---|---|---|
key | Unique key of the asset. Used for referencing in the same package or other packages using packageKey#assetKey. | string | Yes |
name | Name of the asset, used as the default EN translation. | string | Yes |
attributeTypes | Array 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. | array | No |
categoryKey | Key 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. | string | No |
description | Description of the asset. | string | No |
domainTypeKeys | Key of the domain type the object type is assigned to. Domain types facilitate object search and simplify search phrasing for better readability. | array | No |
features | Array of features, which configure object type behavior. E.g., creating an object without the need of a concept. | array | No |
graphDisplayLevels | Array of graph display levels configuring at what level the object type will be displayed by default. Used mostly for data lineage. | array | No |
iconKey | Key of the icon used to visually represent the asset. Use predefined icons from Settings > Configuration > Icons, or define custom ones in the icons asset. | string | No |
initialWorkflowStateKey | Key of the workflow state that a new object of this type starts in. The state applies only if it belongs to the workflow of the space application where the object is created. If not specified, the object starts in the init state of that workflow. See Initial workflow state of new objects. | string | No |
moduleKey | Legacy configuration. | string | No |
notifications | Array of notifications sent to the user when a change is made to the object type. | array | No |
search | Array of search properties configuring if and how the object type appears in search results. | array | No |
state | Current 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). | string | No |
templates | Templatesdefining 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. | json | No |
tooltipAttributeTypeKey | Key of the attribute type used as a tooltip for this object type. For example, used in search. | string | No |
tooltipGraphMetamodelKey | Key of the graph metamodel that adds an “Open in {metamodel}” link to objects of this type. | string | No |
translations | Array 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. | array | No |
userRelationTypes | Array 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. | array | No |
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.
| Condition | The new object starts in |
|---|---|
initialWorkflowStateKey is not set | The init state of the space application’s workflow |
| The state belongs to the space application’s workflow | The state set in initialWorkflowStateKey |
| The state does not belong to the space application’s workflow | The init state of the space application’s workflow |
The space application uses an empty workflow (isEmpty: true), for example in a private space | The state set in initialWorkflowStateKey |
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.