cancel
Showing results for 
Search instead for 
Did you mean: 

Can't Delete My Workflow

vincent_roye
Champ in-the-making
Champ in-the-making
Hi,

I have been working on my workflow a bit, I initiated 3 instances of it and no problem showed up. No in the console I want to delete them by :
doing : delete all workflows imeanit

and it says :

org.alfresco.service.cmr.workflow.WorkflowException: 02240014 Failed to delete workflow instance  {0}.

and I've got no error in my logs

The same when I cant to cancel it :

end workflow activiti$15458

org.alfresco.service.cmr.workflow.WorkflowException: 02240046 Failed to cancel workflow instance  {0}.

Does anyone know what I can do ?

Thank you very much,

Regards
6 REPLIES 6

mitpatoliya
Star Collaborator
Star Collaborator
are you able to see all workflow instances on console. There is one command to fetch all inflight workflows. Then try to delete one by one with their id. If you look carefully all commands on the console you will get both of these commands.

That's strange because the new Workflows I initiate now are removeable.

vincent_roye
Champ in-the-making
Champ in-the-making
Hi Mita,

Yes I can see them, I tried to delete the 3 of them one by one but still it doesn't allow me to delete any of them :

delete workflow activiti$15458

org.alfresco.service.cmr.workflow.WorkflowException: 02250024 Failed to delete workflow instance  {0}.

Same for "end" workflow. I am working on a Maven Project.

vincent_roye
Champ in-the-making
Champ in-the-making
I found an error message :

Caused by: org.activiti.engine.ActivitiException: Process instance is still running, cannot delete historic process instance: 28001

How can I stop the process instance ?

mitpatoliya
Star Collaborator
Star Collaborator
Yeah so the issue is you have changed your workflow definition after words and those instances are from old process definition file.
You need to switch back to that previous version of process definition file delete those workflows and again switch to new version.

Thank you very much for your help Mits. How can I switch to my previous versions ?
I tried "use workflow definition ….." in my console, then I tried to delete manually one by one. It still doesn't work. Is it the right way to switch to the previous versions ?