taskCreatedOn
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2014 04:25 PM
Hi,
This param: taskCreatedOn in rest url that´s right ? Cause I don´t get any return, but when I send a search url with string, no data format, I get correctly information.
I need to get about period, can be use "taskCreatedAfter" and "taskCreatedBefore" to get information in the same URL ?
The data format is correct ?
Thanks.
ex: …history/historic-task-instances?taskCreatedOn=2013-12-04T20:44:47.435+0000
or …history/historic-task-instances?taskCreatedOn=2013-12-04
This param: taskCreatedOn in rest url that´s right ? Cause I don´t get any return, but when I send a search url with string, no data format, I get correctly information.
I need to get about period, can be use "taskCreatedAfter" and "taskCreatedBefore" to get information in the same URL ?
The data format is correct ?
Thanks.
ex: …history/historic-task-instances?taskCreatedOn=2013-12-04T20:44:47.435+0000
or …history/historic-task-instances?taskCreatedOn=2013-12-04
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2014 03:36 AM
If you don't get an error, the data-format is correct. Bare in mind that time-comparison on most DB's goes down to the milliseconds. What is the actual timing you get back if you request the historic-task instance you're interested in?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2014 02:32 PM
Ok, date-format is right, URL GET can be this ?
"…history/historic-task-instances?taskCreatedAfter=2014-01-01&taskCreatedBefore=2014-01-16&size=2500"
and when I get return, all tasks return -2026, but is all tasks, no using filter.
Ex. Json:
{…
startTime: "2013-12-04T20:44:47.435+0000"
…}
I want all tasks started in: 01/01/2014 and 01/16/2014. Can I use "taskCreatedAfter" and "taskCreatedBefore" to do search ?
Thanks.
"…history/historic-task-instances?taskCreatedAfter=2014-01-01&taskCreatedBefore=2014-01-16&size=2500"
and when I get return, all tasks return -2026, but is all tasks, no using filter.
Ex. Json:
{…
startTime: "2013-12-04T20:44:47.435+0000"
…}
I want all tasks started in: 01/01/2014 and 01/16/2014. Can I use "taskCreatedAfter" and "taskCreatedBefore" to do search ?
Thanks.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2014 02:51 AM
Seems like the userguide mentions 2 filter-methods that aren't implemented. The relevant code (org.activiti.rest.service.api.history.HistoricTaskInstanceCollectionResource) does not contain the code for before and after. I've fixed this on master and will be available in the 5.15 release:
https://github.com/Activiti/Activiti/commit/f8a3d92af3851272032fe2bd5ea8dae87c6aa2ca
https://github.com/Activiti/Activiti/commit/f8a3d92af3851272032fe2bd5ea8dae87c6aa2ca
