Limit workflow dropdown based on role
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2013 09:06 AM
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?
Labels:
- Labels:
-
Archive
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2013 09:28 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2013 10:14 AM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2013 05:24 PM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2013 07:25 PM
Are you trying to achieve this in alfresco share?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2013 03:40 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2013 09:38 AM
That seems to be something I should look into. Thanks.
