counting HistoricTaskInstance
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2015 08:50 AM
Hi,
I'm trying to figure out how to count historic task instance.
-> Return nothing.
-> return a result
It looks like a bug. What's wrong ?
I'm trying to figure out how to count historic task instance.
List<HistoricTaskInstance> taches = pe.getHistoryService().createHistoricTaskInstanceQuery().taskDefinitionKey(TaskDefinitionKey).taskCreatedOn(date).list();
-> Return nothing.
List<HistoricTaskInstance> taches = pe.getHistoryService().createHistoricTaskInstanceQuery().taskDefinitionKey(TaskDefinitionKey).taskCreatedBefore(dayAfter).taskCreatedAfter(dayBefore).list();
-> return a result
It looks like a bug. What's wrong ?
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2015 04:59 AM
The taskCreatedOn is very exact (depending on database timestamp resolution). So you're only going to get the tasks for that specific millisecond. Did you verify that the timestamp in the db is the exact (to the millisecond) of what you're passing as param?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2015 07:06 AM
I was trying to search on a specific simple date (without time). Now i understand the result.
Thanks !
Thanks !
