Hello,
Are Alfresco's workflows somewhere archived with all of their content, including variables?
If yes, how is it possible from Admin's account to view them all? (I know about Workflow console, but it only shows current workflows, I need to see those, which are completed).
Solved! Go to Solution.
The WorkflowService API for Java has a simple getWorkflows(WorkflowInstanceQuery) which can be used to retrieve completed processes.
Are you asking about workflows that are completed or in process? You can do this with the APIs. Check this out and see if this helps: https://docs.alfresco.com/community/references/API-JS-WorkflowInstance.html.
Completed are the most important.
Is there a Java's JscriptWorkflowInstance version for completed processes?
The class JscriptWorkflowInstance is generic and can be used for both in process and completed workflows. The main difference is what method you call to retrieve the workflow instance. Unfortunately, by default, the JavaScript "workflow" root scope object only provides a getInstance(String) method by which you can access an individual workflow, regardless of its active / inactive state. There is no list / query operation to retrieve multiple inactive workflows in bulk. The only (indirect) way to potentially get to more than one completed process would be to use the getCompletedTasks() operation, which would retrieve completed tasks from both active and completed workflows, and from those tasks you could get to the workflow instance itself.
Thank you, I will try to play around to getCompletedTasks() then.
But is there a Java equivalent? I'm not keen on writing Javascript because there is not debugger there (I cannot easly check how things work in comparison to live-state debugging in Eclipse).. or can I?
The WorkflowService API for Java has a simple getWorkflows(WorkflowInstanceQuery) which can be used to retrieve completed processes.
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.