cancel
Showing results for 
Search instead for 
Did you mean: 

Delete all workflow for specified user

ganeshkolhe
Champ in-the-making
Champ in-the-making
If user has discontinue with service and we dont want to assign his task to any one; can I delete all the workflow for the specified user.
5 REPLIES 5

cheffilet
Champ in-the-making
Champ in-the-making
I guess you mean that the worklfow has been started with this user? So the initiator has been set as appropriated property. Now you have to iterate over all workflowdefinitions, and all workflows iteself to find out, whether the initiator matches with the selected one. Now you can delete this workflow.

I would suggest to select the database itself to retrieve the active workflows and get active workflows from this point of view in place of using Alfrescos API as its getting realy slow.

ganeshkolhe
Champ in-the-making
Champ in-the-making
Hi Cheffilet,
Thanks for your valuable suggestion. I wonder alfresco has not given any api command to achieve this. we have to do it our own?

Thanks again.

cheffilet
Champ in-the-making
Champ in-the-making
Yes, you could extending the WorkflowService API in such a case.

mrogers
Star Contributor
Star Contributor
It's not clear what should happen to inflight workflows if the initiator discontinues using alfresco.   I can think of use cases where workflow should continue and others where you would want to cancel the worlflow.

ganeshkolhe
Champ in-the-making
Champ in-the-making
Thanks Cheffilet and mrogers for you valuable suggestions.