cancel
Showing results for 
Search instead for 
Did you mean: 

Bad Request 400 after query with date

spille
Champ in-the-making
Champ in-the-making
Hi,

Whenever I query for an historic process instance using one of the rest api I get the following error:

Request :
http://localhost:8888/activiti-rest/service/history/historic-process-instances?startedAfter=2014-05-...  OR
http://localhost:8888/activiti-rest/service/history/historic-process-instances?finishedAfter=2014-05... OR

Respons:
{
errorMessage: "The given value for query-parameter 'finishedAfter' is not a valid date: 2014-05-21T14:47:03.982 0000",
statusCode: 400
}

However, I use a correct ISO time stamp.

Anyone else has this problem?

Thanks in advance,

cheers

Spille
3 REPLIES 3

softcoder
Champ in-the-making
Champ in-the-making
Hi, i am having this same problem.
Have you gotten a solution?
Thanks.

softcoder
Champ in-the-making
Champ in-the-making
I got the solution. On Activiti Forum: http://forums.activiti.org/content/rest-api-task-query-due-date-dueafter-duebefore-error
Accepted date format is "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" Thanks

spille
Champ in-the-making
Champ in-the-making
Hi,
yes i solved the problem.
The timestamp was not valid ISO

use something that looks like this:
2014-10-06T13:32:46Z362

cheers,

Spille