10.4. Human Task Persistence
10.4.1. Human Task Persistence

Figure 10.1. Human Task Service Data Model
- The
taskentity which represents the main information for a task. (See the right-hand side of the ERD above.) - The
deadline,escalation, andnotificationentities represent deadlines and escalations for tasks and notifications associated with those deadlines. (See the left-hand side of the ERD above.)
i18ntext and organizationalentity.
- The
i18ntextentity is used to store text which may be language related, such as names or descriptions entered by users. - The
organizationalentityentity represents a user.
-1 or 0.
10.4.2. Task Related Entities
task entity contains the information for describing a task.
Table 10.1. Task
| Field | Description | Null | Foreign Key |
|---|---|---|---|
id | The primary key of the task identity | ![]() | ![]() |
priority | The priority of the task | ![]() | ![]() |
allowedtodelegate | The group this task may be delegated to | ![]() | ![]() |
status | The status of the task | ![]() | ![]() |
previousstatus | The previous status of the task | ![]() | ![]() |
actualowner_id | The ID of the organizational entity who owns the task | ![]() | ![]() |
createdby_id | The ID of the organizational entity who created the task | ![]() | ![]() |
createdon | The timestamp describing when this task was created | ![]() | ![]() |
activationtime | The timestamp describing when this task was activated | ![]() | ![]() |
expirationtime | The timestamp describing when this task will expire | ![]() | ![]() |
skipable | Whether or not this task may be skipped | ![]() | ![]() |
workitemid | The ID of the work item associated with this task (see jBPM core schema) | ![]() | ![]() |
processinstanceid | The ID of the process instance associated with this task (see jBPM core schema) | ![]() | ![]() |
documentaccesstype | How a document associated with the task can be accessed | ![]() | ![]() |
documenttype | The type of data in the document | ![]() | ![]() |
documentcontentid | The ID of the content entity containing the document data | ![]() | ![]() |
outputaccesstype | How the output document associated with the task can be accessed | ![]() | ![]() |
outputtype | The type of data in the output document | ![]() | ![]() |
outputcontentid | The ID of the content entity containing the output document data | ![]() | ![]() |
faultname | The name of the fault generated, if a fault occurs | ![]() | ![]() |
faultaccesstype | How the document associated with the fault can be accessed | ![]() | ![]() |
faulttype | The type of data in the fault document | ![]() | ![]() |
faultcontentid | The ID of the content entity containing the fault document data | ![]() | ![]() |
parentid | This is the ID of the parent task | ![]() | ![]() |
processid | The name (ID) of the associated process | ![]() | ![]() |
processsessionid | The ID of the associated (knowledge) session | ![]() | ![]() |
taskinitiator_id | The ID of the organizational entity who created the task | ![]() | ![]() |
subtasksstrategy entity is used to save the strategy that describes how parent and sub-tasks should react when either parent or sub-tasks are ended.
Table 10.2. SubTasksStrategy
| Field | Description | Null | Foreign Key |
|---|---|---|---|
id | The primary key | ![]() | ![]() |
dtype | A discriminator column | ![]() | ![]() |
name | The name of the strategy | ![]() | ![]() |
task_id | The primary key of the associated task | ![]() | ![]() |
organizationalentity entity is extended to represent the different people assignments that are part of the task.
Table 10.3. OrganizationalEntity
| Field | Description | Null |
|---|---|---|
id | The primary key | ![]() |
dtype | The discriminator column | ![]() |
attachment entity describes attachments that have been added to the task.
Table 10.4. Attachment
| Field | Description | Null | Foreign Key |
|---|---|---|---|
id | The primary key | ![]() | ![]() |
name | The (file) name of the attachment | ![]() | ![]() |
accesstype | How the attachment can be accessed | ![]() | ![]() |
attachedat | When the attachment was attached to the task | ![]() | ![]() |
attachment_size | The size (in bytes) of the attachment | ![]() | ![]() |
attachmentcontentid | The ID of the content entity storing the raw data of the attachment | ![]() | ![]() |
contenttype | The MIME type of the attachment data | ![]() | ![]() |
attachedby_id | The ID of the organizationalentity entity that attached the attachment | ![]() | ![]() |
taskdata_attachments_id | The ID of the task entity to which this attachment belongs | ![]() | ![]() |
task_comment entity describes comments added to tasks.
Table 10.5. task_comment
| Field | Description | Null | Foreign Key |
|---|---|---|---|
id | The primary key | ![]() | ![]() |
addedat | The timestamp of when the comment was added to the task | ![]() | ![]() |
text | The text of the comment | ![]() | ![]() |
addedby_id | The primary key of the associated organizationalentity entity | ![]() | ![]() |
taskdata_comments_id | The primary key of the associated task entity | ![]() | ![]() |
delegation_delegates table is a join table for relationships between the task entity and the organizationalentity.
Table 10.6. delegation_delegates
| Field | Description | Null | Foreign Key |
|---|---|---|---|
task_id | The primary key of the associated task | ![]() | ![]() |
entity_id | The primary key of the associated organizationalentity | ![]() | ![]() |
peopleassignments_stakeholders table is a join table that describes which organizationalentity entities are task stakeholders of a particular task.
Table 10.7. peopleassignments_stakeholders
| Field | Description | Null | Foreign Key |
|---|---|---|---|
task_id | The primary key of the associated task entity | ![]() | ![]() |
entity_id | The primary key of the associated organizationalentity entity | ![]() | ![]() |
peopleassignments_potowners table is a join table that describes which organizationalentity entities are potential owners of a particular task.
Table 10.8. peopleassignments_potowners
| Field | Description | Null | Foreign Key |
|---|---|---|---|
task_id | The primary key of the associated task entity | ![]() | ![]() |
entity_id | The primary key of the associated organizationalentity entity | ![]() | ![]() |
peopleassignments_exclowners table is a join table that describes which organizationalentity entities are the excluded owners of a particular task.
Table 10.9. peopleassignments_exclowners
| Field | Description | Null | Foreign Key |
|---|---|---|---|
task_id | The primary key of the associated task entity | ![]() | ![]() |
entity_id | The primary key of the associated organizationalentity entity | ![]() | ![]() |
peopleassignments_bas table is a join table that describes which organizationalentity entities are business administrators of a particular task.
Table 10.10. peopleassignments_bas
| Field | Description | Null | Foreign Key |
|---|---|---|---|
task_id | The primary key of the associated task entity | ![]() | ![]() |
entity_id | The primary key of the associated organizationalentity entity | ![]() | ![]() |
peopleassignments_recipients table is a join table that describes which organizationalentity entities are notification recipients for a particular task.
Table 10.11. peopleassignments_recipients
| Field | Description | Null | Foreign Key |
|---|---|---|---|
task_id | The primary key of the associated task entity | ![]() | ![]() |
entity_id | The primary key of the associated organizationalentity entity | ![]() | ![]() |
10.4.3. Deadline, Escalation, and Notification Related Entities
deadline entity represents a deadline for a task.
Table 10.12. deadline
| Field | Description | Null | Foreign Key |
|---|---|---|---|
id | The primary key | ![]() | ![]() |
deadline_date | The deadline date | ![]() | ![]() |
escalated | Whether or not the deadline has been escalated | ![]() | ![]() |
deadlines_startdeadline_id | The ID of the associated task entity which uses this deadline as its start deadline. | ![]() | ![]() |
deadlines_enddeadline_id | The ID of the associated task entity which uses this deadline as its end deadline. | ![]() | ![]() |
escalation entity describes an escalation action that should be taken for a particular deadline.
Table 10.13. escalation
| Field | Description | Null | Foreign Key |
|---|---|---|---|
id | The primary key | ![]() | ![]() |
name | The name of the escalation event | ![]() | ![]() |
deadline_escalation_id | The ID of the associated deadline entity | ![]() | ![]() |
booleanexpression entity represents an expression that evaluates to a boolean. These expressions are used to determine if a constraint should be applied.
Table 10.14. booleanexpression
| Field | Description | Null | Foreign Key |
|---|---|---|---|
id | The primary key | ![]() | ![]() |
expression | The expression text | ![]() | ![]() |
type | The type of expression | ![]() | ![]() |
escalation_constraints_id | The ID of the escalation constraint used on the expression | ![]() | ![]() |
notification entity describes a notification generated by an escalation action.
Table 10.15. notification
| Field | Description | Null | Foreign Key |
|---|---|---|---|
id | The primary key | ![]() | ![]() |
dtype | The discriminator column | ![]() | ![]() |
priority | The priority of the notification | ![]() | ![]() |
escalation_notifications_id | The ID of the associated escalation entity | ![]() | ![]() |
email_header entity describes an email that will be sent as part of a notification.
Table 10.16. email_header
| Field | Description | Null |
|---|---|---|
id | The primary key | ![]() |
fromaddress | The email address the e-mail is sent from | ![]() |
replytoaddress | The reply-to address used in the e-mail | ![]() |
language | The language the email is written in | ![]() |
subject | The subject of the email | ![]() |
body | The body of the email | ![]() |
notification_email_header table is a join table that describes and qualifies which email_header entities are part of a notification.
Table 10.17. notification_email_header
| Field | Description | Null | Foreign Key |
|---|---|---|---|
notification_id | Together with the mapkey, this field is part of the primary key. This field refers to the notification entity that the email_header is associated with | ![]() | ![]() |
mapkey | Together with the mapkey, this field is part of the primary key. This field describes what the type is of the associated email_header | ![]() | ![]() |
emailheaders_id | The ID of the associated email_header entity | ![]() | ![]() |
reassignment entity describes reassignments associated with escalations.
Table 10.18. reassignment
| Field | Description | Null | Foreign Key |
|---|---|---|---|
id | The primary key | ![]() | ![]() |
escalation_reassignments_id | The ID of the associated escalation entity | ![]() | ![]() |
reassignments_potentialowners table is a join table that describes which organizationalentity entities are potential owners if a reassignment happens as part of an escalation.
Table 10.19. reassignment_potentialowners
| Field | Description | Null | Foreign Key |
|---|---|---|---|
task_id | The primary key of the associated reassignment entity | ![]() | ![]() |
entity_id | The primary key of the associated organizationalentity entity | ![]() | ![]() |
notification_bas table is a join table that describes which business administrators will be notified by a notification.
Table 10.20. notification_bas
| Field | Description | Null | Foreign Key |
|---|---|---|---|
task_id | The primary key of the associated notification entity | ![]() | ![]() |
entity_id | The primary key of the associated organizationalentity entity | ![]() | ![]() |
notification_recipients table is a join table that describes which recipients entities will be received a notification.
Table 10.21. notification_recipients
| Field | Description | Null | Foreign Key |
|---|---|---|---|
task_id | The primary key of the associated notification entity | ![]() | ![]() |
entity_id | The primary key of the associated organizationalentity entity | ![]() | ![]() |
content entity represents the content of a document, output document, fault or other object.
Table 10.22. content
| Field | Description | Null |
|---|---|---|
id | The primary key | ![]() |
content | The content data | ![]() |
i18ntext entity is used by a number of other entities to store text fields. The deadline, notification, reassignment, and task entities use this entity to store descriptions, subjects, names, and other documentation.
Table 10.23. i18ntext
| Field | Description | Null | Foreign Key |
|---|---|---|---|
id | The primary key | ![]() | ![]() |
language | The language of the text | ![]() | ![]() |
text | The text | ![]() | ![]() |
task_subjects_id | The ID of the task entity that this subject refers to | ![]() | ![]() |
task_names_id | The ID of the task entity this name refers to | ![]() | ![]() |
task_descriptions_id | The ID of the task entity this description refers to | ![]() | ![]() |
reassignment_documentation_id | The ID of the reassignment entity this documentation refers to | ![]() | ![]() |
notification_subjects_id | The ID of the notification entity this subject refers to | ![]() | ![]() |
notification_names_id | The ID of the notification entity this name refers to | ![]() | ![]() |
notification_documentation_id | The ID of the notification entity this documentation refers to | ![]() | ![]() |
notification_descriptions_id | The ID of the notification entity this description refers to | ![]() | ![]() |
deadline_documentation_id | The ID of the deadline entity this documentation refers to | ![]() | ![]() |



Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.