cancel
Showing results for 
Search instead for 
Did you mean: 

how to disable start workflow functions in share?

ad-int-en
Champ in-the-making
Champ in-the-making
Hi all,

I searched the forum quite a while for a way to disable the workflow functions in share (removing all "start workflow" links and the box on the document detail view "Workflows This document is not part of any workflows.").

I could of course modify the templates for all these views, but there must be a way to simply remove the function from all user roles…I just can not find where 😞

Any ideas?
5 REPLIES 5

mikeh
Star Contributor
Star Contributor
I could of course modify the templates for all these views, but there must be a way to simply remove the function from all user roles…I just can not find where 😞
Why "must there" be? Workflow is a core function.

You can remove the actions by overriding the various .config.xml files and removing the relevant entries. To remove the workflow section, override the component mapping in site-data.

Thanks,
Mike

ad-int-en
Champ in-the-making
Champ in-the-making
thanks for your reply Mike,

at least I know now, that searching for a way to create role that can not start workflows is senseless.
Quite surprised though that workflows can not be disabled, even if it is a "core function" as you name it, we are using the system without manually starting any workflows, so for us the system works without this "core function" (just focussing on user started workflows with this statement). I was hoping that there is a permission in the roles configuration that allows a user to start a workflow, so we could just remove this permission and all would be fine. That would be the easy, comfortable way, but obviously we are the only users who use the system without workflows 😞

So could you please specify the "various .config.xml" files more in detail? Would appreciate it a lot if you could point out a list of files to modify.

Thx a lot for your help
best regards
Paul

mikeh
Star Contributor
Star Contributor
There are plans to make this simpler in the next version, but for now you'll have to modify the following config files:

documentlist.get.config.xml
repo-documentlist.get.config.xml
document-actions.get.config.xml
repo-document-actions.get.config.xml
toolbar.get.config.xml
repo-toolbar.get.config.xml

Do a "find in files" for the string onActionAssignWorkflow.

Thanks,
Mike

ad-int-en
Champ in-the-making
Champ in-the-making
great, thx a million! Will try it right away

cheers
Paul

mluraschi
Champ in-the-making
Champ in-the-making
Hello,

I came across this post because I need to do a very similar thing: my task is to hide the "Start Workflow…" action in the toolbar in specific conditions, for which I already have an evaluator (I check if they are children of a specific type). First of: I am running Alfresco 5.0.0.3 Enterprise.
I tried to follow up the discussion and the links provided and what I ended up doing is copy repo-toolbar.get.config.xml file in web-extension folder, and change the line from:
<blockcode>
<action type="action-link" id="onActionAssignWorkflow" asset="document" label="menu.selected-items.assign-workflow" />
</blockcode>
to:
<blockcode>
<action type="action-link" id="onActionAssignWorkflow" asset="document" label="menu.selected-items.assign-workflow">
     <evaluator>evaluator.doclib.action.is.admin</evaluator>
     <evaluator negate="true">evaluator.doclib.action.is-in-report-or-wave</evaluator>
</action>
</blockcode>

But that didn't change a thing. Another tentative was to copy the whole
<multi-select>
section in my share-config-custom.xml file and apply the same changes (add the evaluator to the action). Still no results.

I'm sorry but I have a very poor understanding of these configuration files, I got into Alfresco only recently and the way
<extension>
works for newer things makes much more sense to me. 😕

Also: I would like to hide the "Start Workflow" button from the "Workflow" section in Document Details, have you got any indications?

Thank you very much for any help.