cancel
Showing results for 
Search instead for 
Did you mean: 

Limit workflow dropdown based on role

ulsa
Champ in-the-making
Champ in-the-making
I would like to be able to control which workflows are displayed in the workflow dropdown on the Start Workflow page, based on the role of the logged-in user. Is that possible?
6 REPLIES 6

ulsa
Champ in-the-making
Champ in-the-making
Thanks, but I don't think that's relevant. That post refers to using a custom evaluator. Doesn't the evaluator control whether the action should be performed or not? I want to control what workflow entries are shown in the workflow dropdown on the page that is shown as a result of clicking the Start workflow button.

ulsa
Champ in-the-making
Champ in-the-making
Perhaps it's not possible to control individual items in a dropdown, and everyone is trying to tell me that I need to do it on the action level instead. Like, add one button for each workflow and set permissions on the actions for the buttons, either via a custom evaluator class or via a permissions tag on the action.

romschn
Star Collaborator
Star Collaborator
Are you trying to achieve this in alfresco share?

mitpatoliya
Star Collaborator
Star Collaborator
Okay, I got your case it is different from the link which I had given.
Now in your case you have to customize the code which is responsible for fetching the workflows.
I mean as of now it fetch all the registered workflow you have to filter it out before it gets displayed.

Now Alfresco share and Alfresco explorer both have different UI so you need to customize separably as per your req.
For Alfresco Share you need to chekcout the scripts under
C:\Alfresco_4.0\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\workflow
specially  workflow-type.get.js under
C:\Alfresco_4.0\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\workflow\filter

In alfresco Explorer

You need to customize StartWorkflow wizard. Where you can filter it either on the StartworkflowWizard.java class level or at jsp level.

I am not saying I have done it this is just guidance.

ulsa
Champ in-the-making
Champ in-the-making
That seems to be something I should look into. Thanks.