Native PostgreSQL Schema Script: postgres.sql - Tasks
This page documents schema objects parsed from config/sql/native/postgres.sql.
Region: Tasks
Task objects, task containers, affected objects, triggers, and operation execution data.
Tables
m_operation_execution
Stores operation execution records attached to objects.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#OperationExecutionType
Inherits from: m_container
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the object that owns the operation execution record. |
|
|
||
|
|
Result status of the operation execution. |
|
|
|
Operation execution record type. |
|
|
|
OID of the initiator reference target. |
|
|
|
Object type of the initiator reference target. |
|
|
|
Relation URI identifier of the initiator reference. |
|
|
|
OID of the related task reference target. |
|
|
|
Object type of the related task reference target. |
|
|
|
Relation URI identifier of the task reference. |
|
|
|
Time of the operation execution. |
|
|
|
Serialized full operation execution value. |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up lookup of operation executions by initiator. Used for: operation execution initiator searches |
|
|
Speeds up lookup of operation executions by related task. Used for: operation execution task searches |
|
|
Speeds up filtering or ordering operation executions by time. Used for: operation execution time filters and ordering |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
- |
|
|
- |
m_ref_task_affected_object
Stores target references for task affected object entries.
Inherits from: m_reference
No primary key is defined directly on this table. The table inherits from m_reference.
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
required |
OID of the task that owns the affected object reference. |
|
|
required |
Container ID of the affected object entry. |
|
|
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up reverse lookup of task affected object references by target object and relation. Used for: task affected object target searches |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
m_task
Stores persistent task objects managed by the task manager.
Represents persistent TaskType, see https://docs.evolveum.com/midpoint/reference/tasks/task-manager/
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#TaskType
Inherits from: m_assignment_holder
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
Task object identifier. |
|
|
||
|
|
Stable task identifier used by task manager logic. |
|
|
|
Task binding mode controlling node affinity. |
|
|
|
||
|
|
Time when the task completed. |
|
|
|
Current task execution state. |
|
|
|
Serialized full operation result for the task. |
|
|
|
Summary operation result status for the task. |
|
|
|
URI identifier of the task handler. |
|
|
|
Time when the last task run started. |
|
|
|
Time when the last task run finished. |
|
|
|
||
|
|
OID of the task object reference target. |
|
|
|
Object type of the task object reference target. |
|
|
|
Relation URI identifier of the task object reference. |
|
|
|
OID of the task owner reference target. |
|
|
|
Object type of the task owner reference target. |
|
|
|
Relation URI identifier of the task owner reference. |
|
|
|
||
|
|
Task recurrence mode. |
|
|
|
Task scheduling state. |
|
|
|
||
|
|
Action taken when a task thread is stopped. |
|
|
|
Reason why the task is waiting. |
|
|
|
Identifiers of tasks this task depends on. |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up lookup by original object name. Used for: original name searches |
|
|
Speeds up lookup by normalized object name. Used for: normalized name lookup |
|
|
Speeds up lookup of task children by parent task identifier. Used for: task hierarchy searches |
|
|
Speeds up lookup of tasks by referenced object. Used for: task object reference searches |
|
|
Enforces unique task identifiers and speeds up task lookup by identifier. Used for: task identifier lookup and uniqueness checks. unique |
|
|
Speeds up lookup of tasks by dependent task identifiers. Used for: task dependency searches |
|
|
Speeds up filtering by object subtype. Used for: subtype filters |
|
|
Speeds up filtering by policy situation. Used for: policy situation filters |
|
|
Speeds up filtering by indexed extension values. Used for: extension item filters |
|
|
Speeds up full-text-like object searches. Used for: full-text-like object searches |
|
|
Speeds up filtering or ordering by creation time. Used for: creation time filters and ordering |
|
|
Speeds up filtering or ordering by modification time. Used for: modification time filters and ordering |
Foreign keys
| Column | References |
|---|---|
|
|
|
|
|
|
|
m_task_affected_objects
Stores affected object information for task activity reporting and indexing.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#ActivityAffectedObjectsType
Inherits from: m_container
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the task that owns the affected object entry. |
|
|
||
|
|
URI identifier of the task activity. |
|
|
|
Object type of the affected object. |
|
|
|
OID of the affected object’s archetype reference target. |
|
|
|
Object type of the affected object’s archetype reference target. |
|
|
|
Relation URI identifier of the affected object’s archetype reference. |
|
|
|
URI identifier of the affected object class. |
|
|
|
OID of the affected object’s resource reference target. |
|
|
|
Object type of the affected object’s resource reference target. |
|
|
|
Relation URI identifier of the affected object’s resource reference. |
|
|
|
Intent of the affected resource object. |
|
|
|
Kind of the affected shadow object. |
|
|
|
Execution mode associated with the affected object. |
|
|
|
Predefined configuration used for the affected object. |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
m_trigger
Stores trigger containers attached to objects.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#TriggerType
Inherits from: m_container
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the object that owns the trigger. |
|
|
||
|
|
URI identifier of the trigger handler. |
|
|
|
Time when the trigger should fire. |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up lookup of triggers by firing time. Used for: trigger scheduling searches |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
- |
Triggers
Triggers run routines automatically when table rows are inserted, updated, or deleted.