Hi,
I'm able to get a process list .. but only with current ones
http://serveur:8081/alfresco/api/-default-/public/workflow/versions/1/processes/?
I would like to get only the completed processes
It seems that the "where" argument allows to do it but I can't find how to use it
Could someone give me the correct syntax to have it .. something like :
thanks !
Solved! Go to Solution.
This works for me:
curl -X GET \ "http://127.0.0.1:8080/alfresco/api/-default-/public/workflow/versions/1/processes?where=(status%3Dcompleted)" \ -H "accept: application/json"
I didn't test it, but I guess following would work:
where=status:completed
For sure, keyword is "status" and "completed" is the filter value you are looking for.
ohh I would never have found ! thank you
Maybe with another format ?
/alfresco/api/-default-/public/workflow/versions/1/processes/?where=status:completed
returns
{ "error": { "errorKey": "framework.exception.InvalidQuery", "statusCode": 400, "briefSummary": "00110823 Une requête WHERE non valide a été reçue: status:completed, Error at char position 0", "stackTrace": "Pour des raisons de sécurité, le traçage de la pile n'est plus affiché, mais la propriété est conservée dans les versions précédente.", "descriptionURL": "https://api-explorer.alfresco.com" } }
This works for me:
curl -X GET \ "http://127.0.0.1:8080/alfresco/api/-default-/public/workflow/versions/1/processes?where=(status%3Dcompleted)" \ -H "accept: application/json"
thanks a lot !
This works !!
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.