1 Reply Latest reply on Jul 29, 2009 10:20 AM by kevinw

    Task query.

      Hi All,

      Can any one tell how can i get the state of the task . In application i need to know when task is complete. I have checked the APi code but did not find any method which tells the current state of the task.

      Thanks

        • 1. Re: Task query.

          Using the HistoryService you can create a HistoryTaskQuery:

          HistoryTaskQuery query = history.createHistoryTaskQuery();
          HistoryTask task = query.taskId(id).state(HistoryTask.STATE_COMPLETED).uniqueResult();