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
Using the HistoryService you can create a HistoryTaskQuery:
HistoryTaskQuery query = history.createHistoryTaskQuery(); HistoryTask task = query.taskId(id).state(HistoryTask.STATE_COMPLETED).uniqueResult();