cancel
Showing results for 
Search instead for 
Did you mean: 

REST API task query due date dueAfter dueBefore error

ssun
Champ on-the-rise
Champ on-the-rise
{
errorMessage: "The given value for query-parameter 'dueAfter' is not a valid date: 2014-05-23T02:40:53",
statusCode: 400
}

What I passed is an ISO date according to http://activiti.org/userguide/#restTasksGet.
Both encoded or not fails
http://localhost:8080/activiti-rest/service/runtime/tasks?assignee=delmstrom&name=mustShip&dueAfter=...
http://localhost:8080/activiti-rest/service/runtime/tasks?dueAfter=2014-05-23T02%3A40%3A53

Any help is appreciated!

Thank you in advance!

–Gordon
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
In our unit tests, we use the following code

protected String getISODateString(Date time) {
    return ISO8601Utils.format(time, true);
  }

This generates a date like this: '2014-05-27T08:25:11.670Z'. Notice the Z at the end (timezone?)

ssun
Champ on-the-rise
Champ on-the-rise
Thank you jbarrez. If the 'dueOn' did not work, I would have guessed that there is something wrong with my date format. I wish the guide can be more clear.
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.