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:
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | Property identifier on the entity |
label | localized map | yes | Display name |
description | localized map | no | Description |
position | int | no | Display 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. |
required | bool | no | Whether the property must have a value |
unique | bool | no | Whether 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
| Reference | Description | JSON type |
|---|---|---|
bool_property_type/generic | Boolean | true / false |
int_property_type/generic | Integer | number |
float_property_type/generic | Floating point | number |
datetime_property_type/generic | Date/time (ISO 8601) | "string" |
range_float_property_type/generic | Floating point value with a range | { "value": …, "upper_range": …, … } |
blob_property_type/generic | Binary large object | See BLOB Properties |
String Types
String property types support an optional regex field on the variant for server-side validation:
| Reference | Regex | Description |
|---|---|---|
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/email | RFC 5321 | E-mail address |
string_property_type/uri | RFC 3986 | Uniform Resource Identifier |
string_property_type/url | RFC 3986 | Uniform Resource Locator (http/https/ftp) |
string_property_type/lua_script | -- | Lua scripting code |
string_property_type/iri | RFC 3987 | Internationalized Resource Identifier |
Multi-Language Types
Values are locale maps with locale codes as keys:
| Reference | Description |
|---|---|
multi_lang_property_type/generic | Localized string |
multi_lang_property_type/standard_label | Localized display name |
multi_lang_property_type/standard_description | Localized description |
{ "name": { "en_us": "Potato", "de_de": "Kartoffel" } }
Rich Text
| Reference | Description |
|---|---|
rich_text_property_type/generic | Formatted/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:
| Reference | Target | Description |
|---|---|---|
entity_property_type/file_ref | entity_type/file | Reference to a file entity |
entity_property_type/entity_type_ref | entity_type/entity_type | Reference to an entity type |
entity_property_type/enum_ref | entity_type/enums | Reference 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:
| Reference | Description |
|---|---|
string_property_type/icon | An icon for the UI, e.g. Lucide:Building |
string_property_type/markdown | Markdown source; the UI shows it rendered or as source, switchable |
string_property_type/layout | Layout information (bounds/waypoints as JSON) for process diagrams |
string_property_type/engine_state | State of the process engine — set by the engine |
entity_property_type/ui_query_ref | Reference to a saved query |
entity_property_type/ui_query_et_ref | Entity type of a saved query |
entity_property_type/mediatype_document_ref | Media type of the primary file of a document |
entity_property_type/process_condition_type_ref | Property type of a process condition |
entity_property_type/location_ref | Reference to a location |
entity_property_type/ai_model_ref | Reference to an AI model |
entity_property_type/mbse_spec_category_ref | Category of a specification |
entity_property_type/mbse_req_category_ref | Category 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:
- Request a presigned URL --
PUT /properties/<prop>/@uploadon the entity. Returns ablob_idand a presigned S3 upload URL (valid for 5 minutes). - Upload binary data --
PUTthe file bytes directly to the presigned URL. This request goes to S3 and bypasses EP.Core entirely. - Store the reference -- Update the entity, setting the BLOB property value to the
blob_idreceived 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
enumscommit and stores the stableroot_idof the matchingenum_entry. A value that matches no entry fails the whole write:Enum value '<value>' not found in enum for property '<name>'. Sendingnullclears an optional enum property. - Read: the stored reference is resolved back to the
valuestring, so the UUID never appears on the wire. If the entry was removed from the enum, the property reads asnull. - Partial update: an enum property that is not sent again keeps its value -- also for a
requiredenum. 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
| Reference | Description |
|---|---|
enum_property_type/generic | Unbound 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_event | The lifecycle moment a hook fires on (enums/hook_event) |
enum_property_type/hook_type | A hook's pre/post timing (enums/hook_type) |
The standard content adds enum property types, each bound to an enums/<same name> entity:
| Area | Enum property types |
|---|---|
| General | iso3166_1_alpha2, iso3166_1_alpha3 (country codes), priority, unit_of_measure, material_group |
| Projects | risk_status, budget_category, dependency_type |
| Data exchange | exchange_direction, type_of_dataset, eclass_data_type, uncertainty_distribution_type |
| SAP | sap_material_type, sap_procurement_type |
| Product structure | product_structure_kind |
| Batteries | battery_level, li_ion_cell_chemistry, battery_cell_format |
| Workshops | workshop_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 type | Stored as | Example |
|---|---|---|
number | int or float | 5, 3.14 |
"string" | plain string | "hello" |
true / false | bool | true |
{ "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 array | rich 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" |