Author: Marc Bui
Attachment:
Author: C.Y. Chen
Attachment:
This question seems to come up frequently so I am adding the solution to the forum.
In version 7.4 and older, the "AllCompletedWorkItems" filter can be used to retrieve completed work items. However, for newer versions (10.x and 11.x) this filter is not recommended for usage and instead to retrieve completed work item history from the history entries. The developer's guide explains how to achieve this within "Section 8.1 Retrieving History Information with the model API". Using ProcessInstance.getHistory() is the basis to retrieve all the history data by passing in an array of the history fields. You can find more information on the history fields from the ProcessInstance interface (details can be found from java docs).
Author: Marc Bui
Attachment: