Is the process instance id unique?

#1

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?

#2

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