camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.11k stars 1.55k forks source link

Add Sort by Create Time to Fetch and Lock API #3925

Closed psavidis closed 11 months ago

psavidis commented 11 months ago

Acceptance Criteria (Required on creation)

Hints

Links

External Tasks are Sorted By Creation Date

Breakdown

### Pull Requests
- [ ] https://github.com/camunda/camunda-bpm-platform/pull/3912
psavidis commented 11 months ago

Here is the Table with the different parameter combinations that can be passed to the Fetch and Lock API, along with their respective effective selection and config used:

useCreateTime Direction Effective Selection Effective CreateTimeConfig
false null Ignore Sorting EMPTY
false DESC Ignore Sorting EMPTY
false ASC Ignore Sorting EMPTY
true null Sort by Descending createTime (sensible default) DESC
true DESC Sort by Descending createTime DESC
true ASC Sort by Ascending createTime ASC