AnsweredAssumed Answered

More on HistoricProcessInstanceQuery issue

Question asked by pault on Dec 10, 2010
Latest reply on Dec 10, 2010 by frederikheremans1
It seems to be not as simple as just the finished() method not working. The results seem to depend on what was called previouslly - or I really am missing something obvious here.

The code :

      System.out.println("Total Historic Processes = "+piHistory.count());
      System.out.println("Processes in progress = "+piHistory.unfinished().count());
      System.out.println("Total Historic Processes = "+piHistory.count());

Produces the following output :

                Total Historic Processes = 2
                Processes in progress = 1
                Total Historic Processes = 1

I would not expect the total number of historic processes ever to go down ?