cancel
Showing results for 
Search instead for 
Did you mean: 

taskCreatedOn

luchoa
Champ in-the-making
Champ in-the-making
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

3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
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?

luchoa
Champ in-the-making
Champ in-the-making
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.

frederikherema1
Star Contributor
Star Contributor
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
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.