Is the process instance id unique?

I’m looking at the first examples of flowable http, and I came across this call sequence:

List<HistoricProcessInstance> l = historyService.createHistoricProcessInstanceQuery()

I’m wondering why it is returning a list, since I thought the process instance id was unique. Isn’t that so?


process instance id is unique.
I found .list() in tests followed by the check size only.

                List<HistoricProcessInstance> processes = historyService.createHistoricProcessInstanceQuery().processInstanceId(processInstanceId).list();
            assertEquals(1, processes.size());


1 Like