cancel
Showing results for 
Search instead for 
Did you mean: 

Delete custom workflow

evdgeest
Champ in-the-making
Champ in-the-making
Hello,

I made a custom workflow that didn't work as I hoped, so I want to delete him from the web client. I deleted workflow-context.xml from the Extension folder and deleted the taskmodel and process definition. And still after restarting Alfresco I see the option of my custom workflow. I deleted the alfresco map within the directory tomcat\webapps so the alfresco.war would redeploy.

Thanks,

Edwin
6 REPLIES 6

gavinc
Champ in-the-making
Champ in-the-making
You'll need to undeploy the workflow, you can do this from the workflow console, details can be found here: http://wiki.alfresco.com/wiki/Workflow_Console

evdgeest
Champ in-the-making
Champ in-the-making
That was what I am looking for!

Thank you.

evdgeest
Champ in-the-making
Champ in-the-making
After using the command 'show definitions' I see the list below.

Last command: show definitions
Duration: 110ms
—–

id: jbpm$3 , name: jbpm$wcmwf:submit , title: Web Site Submission , version: 1
id: jbpm$53 , name: jbpm$wf:vast , title: wf:vast , version: 5
id: jbpm$1 , name: jbpm$wf:review , title: Review & Approve , version: 1
id: jbpm$2 , name: jbpm$wf:adhoc , title: Adhoc Task , version: 1

I want to delete jbpm$53 so I used the command 'undeploy jbpm$53'. After that I get the following message:

Last command: undeploy jbpm$53
Duration: 0ms
—–

Nothing changed when I type the command show definitions again. What am I doing wrong?

Thanks

davidc
Star Contributor
Star Contributor
If you look at the list, you'll be probably see:

id: jbpm$nn , name: jbpm$wf:vast , title: wf:vast , version: [b]4[/b]

Within the console, undeploy will only undeploy the latest version.  You'll need to repeat undeploy until there are no versions left.

At some point, we can add an undeploy <id> all command.

evdgeest
Champ in-the-making
Champ in-the-making
That is the problem, when I use the undeploy command the version should decrease by one, but that won't happen. After undeploying, the list remains unchanged.
I used the command: undeploy jbpm$53

I still see the following:
id: jbpm$53 , name: jbpm$wf:vast , title: wf:vast , version: 5

davidc
Star Contributor
Star Contributor
Actually, I've just tried this myself for a completely different reason and hit the same issue.

It's actually a syntax error which is not being picked up.

The command is:

undeploy definition id

I'll fix it, so a syntax error is reported - the help is correct - you can type help at anytime for all commands.