cancel
Showing results for 
Search instead for 
Did you mean: 

Undeploy a Process Definition

rand
Champ in-the-making
Champ in-the-making
Hi there !

A fairly simple question : how can an administrator delete a Workflow Definition once it has been deployed ? I haven't seen any command to do that through the Workflow Console (although you can delete all the instances of a workflow definition), and I end up with an (obsolete) test definition showing up in the list everytime I start a Workflow.

Thanks in advance.

Rand

PS : A quick suggestion, shouldn't a "Workflow" category be created in the forum ? No one really seems to know where to post such questions.
13 REPLIES 13

davidc
Star Contributor
Star Contributor
Oh that's annoying.  Undeploy has been left out of the Workflow Console by mistake.  I thought I'd added that one.

I'll raise a JIRA issue.

Don't know if you want to dive into Java, but there is a WorkflowService.undeployDefinition() method that can be called.

A sneaky workaround might be to install the JBoss jBPM starterkit, point it at the Alfresco database, and use its web console to undeploy.

As for the Workflow forum, others have asked too, so I think it's time to add one.

davidc
Star Contributor
Star Contributor

rand
Champ in-the-making
Champ in-the-making
Thanks for the answer and the JIRA issue, the workaround will do allright in my case.

Rand

pcuvecle
Champ in-the-making
Champ in-the-making
Quite an old post now, but i tried to plug the jbpm-console webapp on the JBPM tables used by Alfresco but when I try to login to the web app, a login / password is required.

Does anybody has an idea about the login / password that can be used ?

Regarding Jira AR-1072, what is the undeploy command syntax ? It does not appear in the command list returned by the workflow console help

rob562435
Champ in-the-making
Champ in-the-making
Try the "admin" account!

Rgrds, Rob

pcuvecle
Champ in-the-making
Champ in-the-making
It does not work with the admin account (I try to logon to the jbpm-console webapp not the alfresco one)

rob562435
Champ in-the-making
Champ in-the-making
Why not use the Workflow Console from Alfresco itself? It now has the undeploy functionality the original post was complaining about.

Sorry, I have no other suggestion, Rob

pcuvecle
Champ in-the-making
Champ in-the-making
Sure it would be easier
But i've been unable to figure out how to use the undeploy function from the workflow console (not in the help command list)

In another hand I wanted to have a look at the jbpm workflow console features to see if there are some usefull stuff that could help manage Alfresco workflows more easily

rob562435
Champ in-the-making
Champ in-the-making
Take a look at: http://wiki.alfresco.com/wiki/Workflow_Console
The "undeploy" command is described here. Be aware that when you undeploy the latest definition the previous definition becomes active and so on. According the WIKI starting with version 2.1 all definitions can be undeployed at once (I did not try that one yet).
Use "show definitions" to look up the definition ID needed to undeploy.
Be also aware that as long as you automatically deploy on starting Alfresco your workflow will re-appear.

Rgrds, Rob