startTime is missing in runtime/process-instances for activiti rest api.

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

startTime is missing in runtime/process-instances for activiti rest api.

Hi 

I am using activiti(6) rest api for a project. I found startTime attributes is missing in runtime/process-instances api but its present in history/historic-process-instances. Is there any way to enable this attribute or this is the default behavior. We need startTime for our project requirement  so please suggest the best way to achieve it. 

1 Reply
Highlighted
Alfresco Employee

Re: startTime is missing in runtime/process-instances for activiti rest api.

In previous versions of Activiti it has been necessary to use the history to get this information, both at the REST and java levels. It was added to the java API in Activiti 6 but not the REST API. So you do need to use the historic-process-instances rest endpoint. Have you tried using the finished=false option so that you see the history records for the active instances? Otherwise you could consider whether the task start time might substitute in your case or extending the API.