'IBM BPM extract cases from Case Solution

I would like to extract all the cases completed/working by particular customer throughout the time. E.g.: CustomerId 111 completed case before 1 month and 222 completed before 2 months.

Now, user is filling the case with id 333, and I would like to fetch and display the data for case id 333 like:

CaseId        Status
111              completed
222              working

Any ideas how to do that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source