Workflows Archivization

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

Workflows Archivization

Jump to solution

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).

1 Solution

Accepted Solutions
Highlighted
Master

Re: Workflows Archivization

Jump to solution

The WorkflowService API for Java has a simple getWorkflows(WorkflowInstanceQuery) which can be used to retrieve completed processes.

View solution in original post

5 Replies
Highlighted
Community Manager
Community Manager

Re: Workflows Archivization

Jump to solution

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.

 

Highlighted
Established Member II

Re: Workflows Archivization

Jump to solution

Completed are the most important.

Is there a Java's JscriptWorkflowInstance version for completed processes?

Highlighted
Master

Re: Workflows Archivization

Jump to solution

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.

Highlighted
Established Member II

Re: Workflows Archivization

Jump to solution

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?

Highlighted
Master

Re: Workflows Archivization

Jump to solution

The WorkflowService API for Java has a simple getWorkflows(WorkflowInstanceQuery) which can be used to retrieve completed processes.

View solution in original post