BS-11878, implement new ProcessAPI method that retrieves all flownode counters (nbFailed, nbReady, nbCompleted) for a given process instance (in the same transaction).
Flownodes in sub-processes are intentionally not retrieved.