Skip to main content
Version: Next

Property Types

A PropertyType defines the data type and validation constraints of a property. All concrete property types inherit from the base property_type entity type. Property types are reusable -- define one once and attach it to many entity types.

Declaring a Property​

Properties are declared on entity types and relationship types via has_prop. Each has_prop relationship instance carries edge properties that define the context of that particular usage:

FieldTypeRequiredDescription
namestringyesProperty identifier on the entity
labellocalized mapyesDisplay name
descriptionlocalized mapnoDescription
positionintnoDisplay order of the property, ascending. For presentation only -- the engine never reads it. Properties without a position have no defined order relative to the rest.
requiredboolnoWhether the property must have a value
uniqueboolnoWhether the value must be unique within the key space (see below)

The target of the has_prop relationship points to the specific property type variant (e.g. string_property_type/generic).

Uniqueness Scope​

The unique constraint is scoped to the same key space as the entity's key (see Key Spaces):

  • For entity properties: uniqueness across all instances of the same type.
  • For trait properties: uniqueness globally across all entities that carry the trait.
  • For relationship and list-item edge properties: uniqueness within the sub key space scoped to the source/owner entity.

Example​

"has_prop": [
{
"properties": {
"name": "material_number",
"label": { "en_us": "Material Number", "de_de": "Materialnummer" },
"required": true,
"unique": true
},
"target": "string_property_type/system_name"
}
]

Built-in Property Types​

Scalar Types​

ReferenceDescriptionJSON type
bool_property_type/genericBooleantrue / false
int_property_type/genericIntegernumber
float_property_type/genericFloating pointnumber
datetime_property_type/genericDate/time (ISO 8601)"string"
range_float_property_type/genericFloating point value with a range{ "value": …, "upper_range": …, … }
blob_property_type/genericBinary large objectSee BLOB Properties

String Types​

String property types support an optional regex field on the variant for server-side validation:

ReferenceRegexDescription
string_property_type/generic--Plain string
string_property_type/system_name[a-zA-Z0-9_]+System-safe identifier
string_property_type/filename^[^<>:;,?"*|/]+$Valid filename
string_property_type/emailRFC 5321E-mail address
string_property_type/uriRFC 3986Uniform Resource Identifier
string_property_type/urlRFC 3986Uniform Resource Locator (http/https/ftp)
string_property_type/lua_script--Lua scripting code
string_property_type/iriRFC 3987Internationalized Resource Identifier

Multi-Language Types​

Values are locale maps with locale codes as keys:

ReferenceDescription
multi_lang_property_type/genericLocalized string
multi_lang_property_type/standard_labelLocalized display name
multi_lang_property_type/standard_descriptionLocalized description
{ "name": { "en_us": "Potato", "de_de": "Kartoffel" } }

Rich Text​

ReferenceDescription
rich_text_property_type/genericFormatted/rich text content

The value is arbitrary JSON, stored verbatim -- the engine never interprets it, so any editor document (for example a ProseMirror/TipTap document, an HTML wrapper or an array of nodes) is a valid value:

{ "content": { "html": "<p>Detailed description...</p>" } }

One caveat: an object shaped like a locale map, a BLOB descriptor or a range value is interpreted as that instead.

Entity Reference Types​

Properties that hold a reference to another entity:

ReferenceTargetDescription
entity_property_type/file_refentity_type/fileReference to a file entity
entity_property_type/entity_type_refentity_type/entity_typeReference to an entity type
entity_property_type/enum_refentity_type/enumsReference to an enum definition — used by enum_property_type (see Enum Properties)

Property Types From the Standard Content​

The types above are part of the EP core. A standard EP installation adds further property types through its standard content. They work exactly like the core types and are available in the same lists when you add a property:

ReferenceDescription
string_property_type/iconAn icon for the UI, e.g. Lucide:Building
string_property_type/markdownMarkdown source; the UI shows it rendered or as source, switchable
string_property_type/layoutLayout information (bounds/waypoints as JSON) for process diagrams
string_property_type/engine_stateState of the process engine — set by the engine
entity_property_type/ui_query_refReference to a saved query
entity_property_type/ui_query_et_refEntity type of a saved query
entity_property_type/mediatype_document_refMedia type of the primary file of a document
entity_property_type/process_condition_type_refProperty type of a process condition
entity_property_type/location_refReference to a location
entity_property_type/ai_model_refReference to an AI model
entity_property_type/mbse_spec_category_refCategory of a specification
entity_property_type/mbse_req_category_refCategory of a requirement

Enum property types of the standard content are listed under Built-in Enum Instances. The exact set depends on the content installed on your system — the search page Property Types in the administration menu shows all property types that exist.

BLOB Properties​

A blob_property_type/generic property stores a reference to a binary object (image, document, file, etc.) held in an external S3-compatible object store. Only the reference is stored in the database; the binary data lives in the blob store.

Declaring a BLOB Property​

"has_prop": [
{
"properties": { "name": "photo", "label": { "en_us": "Photo" }, "required": false },
"target": "blob_property_type/generic"
}
]

Wire Format (Read)​

Only the object reference (blob_id and store_id) is stored. When reading an entity, a BLOB property is serialized as:

{
"blob_id": "<uuid>",
"store_id": "default"
}

Immediately after entity creation where a BLOB property was supplied, an @upload_url is additionally included:

{
"blob_id": "<uuid>",
"store_id": "default",
"@upload_url": "<presigned S3 PUT URL>"
}

This allows skipping the explicit @upload call on initial creation. On later reads @upload_url is absent; use the @upload route to obtain a fresh URL at any time.

Wire Format (Write)​

On create or update, supply the blob_id UUID as a plain string. Passing null clears the reference.

{ "properties": { "photo": "<blob-uuid>" } }

Full Upload Workflow​

Uploading a binary file to a BLOB property is a three-step process:

  1. Request a presigned URL -- PUT /properties/<prop>/@upload on the entity. Returns a blob_id and a presigned S3 upload URL (valid for 5 minutes).
  2. Upload binary data -- PUT the file bytes directly to the presigned URL. This request goes to S3 and bypasses EP.Core entirely.
  3. Store the reference -- Update the entity, setting the BLOB property value to the blob_id received in step 1.

See REST API Reference for the complete @download and @upload route documentation.

Enum Properties​

An enum property constrains a property value to one of a predefined set of named entries defined by an enums entity. An enum_property_type points at that enums entity via its enum_ref property (written as enums/<key>). See Enums for how to define an enum and how a value set may evolve.

Declaring an Enum Property​

"has_prop": [
{
"properties": { "name": "color", "label": { "en_us": "Color" }, "required": false },
"target": "enum_property_type/fruit_color"
}
]

Wire Format​

Both input and output use the plain string value:

{ "properties": { "color": "red" } }
  • Write: the engine matches the string against the entries of the current enums commit and stores the stable root_id of the matching enum_entry. A value that matches no entry fails the whole write: Enum value '<value>' not found in enum for property '<name>'. Sending null clears an optional enum property.
  • Read: the stored reference is resolved back to the value string, so the UUID never appears on the wire. If the entry was removed from the enum, the property reads as null.
  • Partial update: an enum property that is not sent again keeps its value -- also for a required enum. Omitting it is never an error.

Because the reference is stored, changing an entry's label or int_value does not affect existing data. Renaming an entry's value should be avoided -- see Evolving a Value Set.

Built-in Enum Instances​

ReferenceDescription
enum_property_type/genericUnbound base variant. Without an enum_ref there is nothing to resolve a value against, so it is not usable as a has_prop target
enum_property_type/hook_eventThe lifecycle moment a hook fires on (enums/hook_event)
enum_property_type/hook_typeA hook's pre/post timing (enums/hook_type)

The standard content adds enum property types, each bound to an enums/<same name> entity:

AreaEnum property types
Generaliso3166_1_alpha2, iso3166_1_alpha3 (country codes), priority, unit_of_measure, material_group
Projectsrisk_status, budget_category, dependency_type
Data exchangeexchange_direction, type_of_dataset, eclass_data_type, uncertainty_distribution_type
SAPsap_material_type, sap_procurement_type
Product structureproduct_structure_kind
Batteriesbattery_level, li_ion_cell_chemistry, battery_cell_format
Workshopsworkshop_level, workshop_requirement_priority, workshop_requirement_category, workshop_todo_progress, workshop_assumption_validated, workshop_proposed_by, workshop_status, workshop_session_status, workshop_relates_to_kind

Property Value Types Summary​

JSON typeStored asExample
numberint or float5, 3.14
"string"plain string"hello"
true / falsebooltrue
{ "en_us": "...", ... }multi-language string{ "en_us": "Potato", "de_de": "Kartoffel" }
{ "value": …, "upper_range": …, … }range float{ "value": 3.5, "upper_range": 4.0 }
any other object or arrayrich text (raw JSON){ "html": "<p>...</p>" }
"<uuid>" (write) / { "blob_id": …, "store_id": … } (read)BLOB reference"a1b2c3d4-..."
"<value>"enum value (the entry's value)"red"
"type_name/key"entity reference"file/manual_pdf"