AnsweredAssumed Answered

How to know finishing task?

Question asked by fightingmamoru on Oct 20, 2016
Latest reply on Oct 20, 2016 by fightingmamoru

I am beginner of Activiti. I have some question for Activiti.
I want to know how to know finishing task in historic tast data.

      // Check All task for my-process
      List<HistoricTaskInstance> historyList = historyService.createHistoricTaskInstanceQuery()

      // Get my task historic info
                HistoricTaskInstance history = historyList.get(0);

      String taskId = history.getId();

      // !! I want to know this !!
      String isFinished = ?

I used Activiti Explorer, too.
In Activiti Explorer, Manage -> Administrator -> Running process instances is show me Tasks and their "FINI" value. (under image).


How to know "FINI" value?

Added, I am using under code for finding finished Process Instance list.

      // find finished processInstance
      List<HistoricProcessInstance> phf = historyService.createHistoricProcessInstanceQuery()

What is the criteria for extracting .finished() data. (e.g. dueTime, endTime?)