-
Enhancement
-
Resolution: Done
-
Minor
-
6.2.0
-
None
Description of problem:
Retrieving of user task comments (method getCommentsByTaskId(Long taskId) in UserTaskServiceImpl) return list of comments without defined sorting. For lot of databases it isn't an issue as they return comments ordered by id, but for example Oracle database return comments with random ordering.
It would be nice to have consist ordering of comments for all databases all the time.
Version-Release number of selected component (if applicable):
BPMS6.2.0ER4
How reproducible:
Simulated on kie server - test testUserTaskComments() in UserTaskServiceIntegrationTest. If kie server is backed by Oracle database then taskClient.getTaskCommentsByTaskId returns comments in random order - tests count with it so they will pass all the time.
Steps to Reproduce:
1.
2.
3.
Actual results:
Comments are returned in random order.
Expected results:
Comments has consistent order all the time for all databases.
Additional info: