backend code for alfresco/api/workflow-instances

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2014 07:24 PM
Hi forum,
I'm trying to find the backend code that is responsible for returning the list of workflows from the URL below.
share/proxy/alfresco/api/workflow-instances?initiator=username&exclude=jbpm$wcmwf:*,jbpm$wf:articleapproval…&skipCount=0&maxItems=50&startedAfter=2014-09-16T11:59:59.999-07:00
Basically, I need to get a list of completed workflows back, but I need to know what parameter to pass it.
Does anyone know where this code might reside? I've searched in XML, Java file, but no luck yet.
Thanks everyone.
I'm trying to find the backend code that is responsible for returning the list of workflows from the URL below.
share/proxy/alfresco/api/workflow-instances?initiator=username&exclude=jbpm$wcmwf:*,jbpm$wf:articleapproval…&skipCount=0&maxItems=50&startedAfter=2014-09-16T11:59:59.999-07:00
Basically, I need to get a list of completed workflows back, but I need to know what parameter to pass it.
Does anyone know where this code might reside? I've searched in XML, Java file, but no luck yet.
Thanks everyone.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2014 11:22 PM
Share url as such format
So the parameters of
Following are some parameters
For workflow-instances webscript api information,please visit
share/proxy/alfresco/api/workflow-instances
will be sumbmitted to a Spring MVC proxy controller ,in the proxy controller the request url will be rebuild to send request to alfresco webscript api with address /alfresco/service/api/workflow-instances
and the response of alfresco webscript api will be used as response of share.So the parameters of
share/proxy/alfresco/api/workflow-instances
are the same as /alfresco/service/api/workflow-instances
Following are some parameters
maxItems,skipCount,exclude,state,initiator,priority,dueBefore,dueAfter,startedBefore,startedAfter,completedBefore,completedAfter,definitionName,definitionId
For workflow-instances webscript api information,please visit
http://localhost:8080/alfresco/service/index/all

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2014 07:54 PM
Thanks to Kaynezhang, I was able to retrieve the data by adding &state=completed as part of the query.
