Steps to reproduce
- Start Camunda (version 7.13.0)
- Open process definition history view in Cockpit
- Filter process instances by variable
List of process instances is shown
- Process engine persistence exception is thrown:
- Column PROC_DEF_ID_ is present in both tables ACT_HI_PROCINST and ACT_HI_VARINST.
- The prefix pointing to the correct table is missing in the SQL query, see https://github.com/camunda/camunda-bpm-platform-ee/blob/7.13.0/webapps/camunda-webapp/plugins/src/main/resources/org/camunda/bpm/cockpit/impl/plugin/history/historicProcessInstance.xml#L98-L100