cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a task completed only with the status?

kolmogorov_dikm
Champ in-the-making
Champ in-the-making
HistoricTaskInstanceQuery class has a method finished(). Earlier, before the correction 'Copying due-date in HistoricTaskInstance at create-time ' (commit 7f5ca8f ) this method returns the status of the task only "completed", all things (completed, deleted etc.). How to get a task completed only with the status? In my opinion, it would be convenient to have the following methods:

    finished() - (SQL  "end_time_  is not null")
    unfinished() - (SQL "end_time_  is null")
    taskStatus(String value) - (SQL "delete_reason_ = value")
Activiti version 5.12 Snapshot
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
Earlier, before the correction 'Copying due-date in HistoricTaskInstance at create-time ' (commit 7f5ca8f ) this method returns the status of the task only "completed", all things (completed, deleted etc.).

I don't see what this commit has to do with the "finished()" and "unfinished()" method? These methods don't take into account the dueDate…

For filtering based on DELETE_REASON_, you can use:

/** Only select historic task instances with the given task delete reason. */
  HistoricTaskInstanceQuery taskDeleteReason(String taskDeleteReason);

kolmogorov_dikm
Champ in-the-making
Champ in-the-making
oh, did not notice it, thank you. But changed the behavior of the method commit finished () Smiley Wink

frederikherema1
Star Contributor
Star Contributor
But changed the behavior of the method commit finished ()

Did you change the method? Or is there a problem in the activiti-codebase?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.