cancel
Showing results for 
Search instead for 
Did you mean: 

Old tasks and workflows

buurd
Champ in-the-making
Champ in-the-making
Hi!

Could anyone please explain how to access data about old workflows.
For example,

* list tasks performed in the context of an workflow-instance.
* list all workflows of a workflowdefinition that has ended in january.

I can't find any documentation about how to access the history of a workflow. If it exists please point me to it.

Thanks in advance
Roland
6 REPLIES 6

mrogers
Star Contributor
Star Contributor
It doesn't exist.

mrogers
Star Contributor
Star Contributor
It doesn't exist, there is no workflow history.

You could however implement your own.

buurd
Champ in-the-making
Champ in-the-making
Thanks for the answer.

Could you provide me with some idea about how to implement the workflow-history (what api for example).

Thanks in advance
Roland

invictus9
Champ in-the-making
Champ in-the-making
I believe that mrogers means that you can create your logging of the actions of a work flow. If you log the work flow ID & other parameters, you would then be able to display the work flow history in a way that works for you.

buurd
Champ in-the-making
Champ in-the-making
Ok, so I need to write loggingactions for every step in the workflow… really there must be a better way. I know the data is in alfresco already, atleast the standard-gui has access to it somehow.

In the gui I can:
get "tasks done" for a user, so the old-tasks are saved.
get a list of tasks that have been performed before the current, so the context of a workflow are saved.

So the limitation must be in the javascript-api, right? I really don't think that I (or anyone else) should store this information a second time in a handrolled logger, right?

I guess that I have to go Java? Suggestions about where to start?

mrogers
Star Contributor
Star Contributor
If you still have workflow instance in an End state then you can still query and display properties.  That's what the "tasks done" is doing.  

However if a workflow instance no longer exists because its been cancelled or finished then there's nothing to query.    That's what I meant by there's no workflow history.