flowable / flowable-engine

A compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.
https://www.flowable.org
Apache License 2.0
8k stars 2.62k forks source link

Query the sorting exception of HistoricActivityInstance #3914

Closed MoringMartin closed 5 months ago

MoringMartin commented 5 months ago

Describe the bug When I query the HistoricActivityInstance for the specified process instance, I want to sort by ActivityId, but the data returned does not match the requirements

Expected behavior When I query the HistoricActivityInstance for the specified process instance, I want to sort by ActivityId

Code List historicActivityInstances = historyService.createHistoricActivityInstanceQuery() .processInstanceId(processInstanceId) .orderByActivityId() .asc() .list();

Additional context

org.flowable flowable-spring-boot-starter-process 7.0.1
    <dependency>
        <groupId>org.postgresql</groupId>
        <artifactId>postgresql</artifactId>
    </dependency>