cancel
Showing results for 
Search instead for 
Did you mean: 

Undeploy workflow on Alfresco Community Edition

gm
Champ in-the-making
Champ in-the-making
Hi all.

I'm learning workflow process development for alfresco (community edition).
Have deployed simple workflow on alfresco using bootstrap method.
Now I need to undeploy it, but can not find how to do it.

I have removed xml files but workflow is shown in "Start Workflow" menu anyway.
there is no workflow console for community edition.

Any help?
1 ACCEPTED ANSWER

hmercado67
Champ on-the-rise
Champ on-the-rise

Jeff, thanks for your response.

I solved the situation. I found a file at the following path: \tomcat\webapps\share\WEB-INF\classes\alfresco\share-config.xml. That file contains a section for hiding simple workflows. It works for me. 

<!-- A list of workflow definitions that are NOT displayed in Share -->
<hidden-workflows>
<!--Hide Basic Workflows -->
<workflow name="activiti$activitiReviewPooled"/>
<workflow name="activiti$activitiParallelReview"/>
<workflow name="activiti$activitiParallelGroupReview"/>
<workflow name="activiti$quickStartReviewPublish"/>
<workflow name="activiti$quickStartReviewPublishTree"/>
<workflow name="activiti$activitiAdhoc"/>

<!-- Hide all WCM related workflows -->
<workflow name="jbpm$wcmwf:*"/>
<workflow name="jbpm$wf:articleapproval"/>
<!-- Hide publishing workflows -->
<workflow name="activiti$publishWebContent"/>
<workflow name="jbpm$publishWebContent"/>
<!-- Hide invitation workflows -->
<workflow name="jbpm$inwf:invitation-nominated"/>
<workflow name="jbpm$imwf:invitation-moderated"/>
<workflow name="activiti$activitiInvitationModerated"/>
<workflow name="activiti$activitiInvitationNominated"/>
<workflow name="activiti$activitiInvitationNominatedAddDirect"/>
<workflow name="activiti$resetPassword"/>
</hidden-workflows>

View answer in original post

8 REPLIES 8

jpotts
World-Class Innovator
World-Class Innovator
1. Go to the Workflow Console, which is http://localhost:8080/alfresco/faces/jsp/admin/workflow-console.jsp
2. Type "show definitions all" then click Submit to get the list of deployed workflows. Copy the workflow definition ID of the workflow you want to undeploy. It should look something like "activiti$publishWebContent:1:29"
3. Type "undeploy definition [workflow definition ID]" then click Submit.

You can also undeploy using the name rather than the definition ID. You can type "help" and click Submit to see more useful commands.

Jeff

gm
Champ in-the-making
Champ in-the-making
Thank you.

I have managed to undeploy workflow with these steps.
only issue I have had was that I was authenticating in Share, not in Alfresco, so console page refused to open due to permission issues.

After "discovering" alfresco login page, everything went smooth Smiley Happy

kzala7
Confirmed Champ
Confirmed Champ

hi,

i'm not able to undeploy the workflow as it shows syntax error in admin workflow console

jpotts
World-Class Innovator
World-Class Innovator

What command did you type in the admin workflow console?

hmercado67
Champ on-the-rise
Champ on-the-rise

hi, Jeff I followed your indications and the result is positive, but when the machine is rebooted, the workflows are deployed again.

jpotts
World-Class Innovator
World-Class Innovator

It sounds like those workflows are configured for automatic deployment via Spring. You have to remove the reference to them from your Spring configuration or they will continue to be automatically deployed on every restart.

hmercado67
Champ on-the-rise
Champ on-the-rise

Jeff, thanks for your response.

I solved the situation. I found a file at the following path: \tomcat\webapps\share\WEB-INF\classes\alfresco\share-config.xml. That file contains a section for hiding simple workflows. It works for me. 

<!-- A list of workflow definitions that are NOT displayed in Share -->
<hidden-workflows>
<!--Hide Basic Workflows -->
<workflow name="activiti$activitiReviewPooled"/>
<workflow name="activiti$activitiParallelReview"/>
<workflow name="activiti$activitiParallelGroupReview"/>
<workflow name="activiti$quickStartReviewPublish"/>
<workflow name="activiti$quickStartReviewPublishTree"/>
<workflow name="activiti$activitiAdhoc"/>

<!-- Hide all WCM related workflows -->
<workflow name="jbpm$wcmwf:*"/>
<workflow name="jbpm$wf:articleapproval"/>
<!-- Hide publishing workflows -->
<workflow name="activiti$publishWebContent"/>
<workflow name="jbpm$publishWebContent"/>
<!-- Hide invitation workflows -->
<workflow name="jbpm$inwf:invitation-nominated"/>
<workflow name="jbpm$imwf:invitation-moderated"/>
<workflow name="activiti$activitiInvitationModerated"/>
<workflow name="activiti$activitiInvitationNominated"/>
<workflow name="activiti$activitiInvitationNominatedAddDirect"/>
<workflow name="activiti$resetPassword"/>
</hidden-workflows>

jpotts
World-Class Innovator
World-Class Innovator

Perfect, well done. Glad you figured it out.