AnsweredAssumed Answered

How to know finishing task?

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

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()
            .processDefinitionKey("my-process")
            .list();

      // 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).

[img]http://i.imgur.com/hop189g.png[/img]

How to know "FINI" value?


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

[java]
      // find finished processInstance
      List<HistoricProcessInstance> phf = historyService.createHistoricProcessInstanceQuery()
            .processInstanceId(processInstanceId)
            .finished()
            .list();
[/java]

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

Thanks.

Outcomes