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()
														.processInstanceId(processInstanceId)
														.list();

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

Hi,

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());

Martin

1 Like