-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 9.10
-
Fix Version/s: 10.2
-
Component/s: Events / Works
-
Epic Link:
-
Backlog priority:500
-
Sprint:nxcore 10.2.7, nxcore 10.2.8, nxcore 10.3.1
-
Story Points:5
Methods that list work or workId can not scale and should be deprecated:
- List<Work> listWork(queueId, state)
- List<String> listWorkId(queueId, state)
Also finding a work should not be allowed because it could be used to get a work output which is discouraged, also searching for work and returning a work cost too much, so deprecate:
- Work find(workId, state)
Also the getWorkState(workId) should be used in place of other usage like in:
https://github.com/nuxeo/nuxeo/blob/master/nuxeo-features/nuxeo-platform-rendition/nuxeo-platform-rendition-core/src/main/java/org/nuxeo/ecm/platform/rendition/lazy/AbstractLazyCachableRenditionProvider.java#L266
- is related to
-
NXDOC-1619 WorkManager evolution
- Resolved
-
NXP-25375 Replace findWork by getWorkState in AbstractLazyCachableRendition
- Resolved