HistoricTaskInstanceQuery orderByTaskDefinitionKey() does not work

Description

List<HistoricTaskInstance> hlist = historyService.createHistoricTaskInstanceQuery().processInstanceId(processInstance.getId()).orderByTaskDefinitionKey().asc().list();

  1.  

    1.  

      1. Error querying database. Cause: org.h2.jdbc.JdbcSQLException: Feld "TASK_DEF_ID_" nicht gefunden
        Column "TASK_DEF_ID_" not found; SQL statement:
        select *

from ACT_HI_TASKINST HTI

WHERE HTI.PROC_INST_ID_ = ?

order by TASK_DEF_ID_ asc

LIMIT ? OFFSET ? [42122-161]

  1.  

    1.  

      1. The error may exist in org/activiti/db/mapping/entity/HistoricTaskInstance.xml

      2. The error may involve org.activiti.engine.impl.persistence.entity.HistoricTaskInstanceEntity.selectHistoricTaskInstancesByQueryCriteria

      3. The error occurred while executing a query

      4. SQL: select * from ACT_HI_TASKINST HTI WHERE HTI.PROC_INST_ID_ = ? order by TASK_DEF_ID_ asc LIMIT ? OFFSET ?

Environment

None

Assignee

Bernd Ruecker (camunda)

Reporter

Bernd Ruecker (camunda)

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure