Adding multiple evaluators to doclib Actions
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2012 11:57 AM
Hi,
I want to hide some of the actions in document details page for one particular site.
I tried adding a custom evaluator that checks the 'siteId' and returns true/false based on the id of the site. But its not working in other sites as expected for actions that already has an evaluator. For e.g - "document-approve". I am able to hide them but when I go to other sites, they seem to be shown there. These actions already has an evaluator and it looks like my custom evaluator take precedence here and it identifies it as a site to display the action, where as it should get displayed only based on the out of the box evaluator (evaluator.doclib.action.simpleApprove).
Is there a way to have multiple evaluators for an action?
Alfresco version - Community 4.0.a
Thanks
I want to hide some of the actions in document details page for one particular site.
I tried adding a custom evaluator that checks the 'siteId' and returns true/false based on the id of the site. But its not working in other sites as expected for actions that already has an evaluator. For e.g - "document-approve". I am able to hide them but when I go to other sites, they seem to be shown there. These actions already has an evaluator and it looks like my custom evaluator take precedence here and it identifies it as a site to display the action, where as it should get displayed only based on the out of the box evaluator (evaluator.doclib.action.simpleApprove).
Is there a way to have multiple evaluators for an action?
Alfresco version - Community 4.0.a
Thanks
Labels:
- Labels:
-
Archive
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2012 02:54 PM
Hi,
as far as I know you'll have to implement your own Evaluator that's able to handle multiple evaluators…would be a nice contribution.
Cheers, Jan
as far as I know you'll have to implement your own Evaluator that's able to handle multiple evaluators…would be a nice contribution.
Cheers, Jan

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2012 10:06 AM
Hi jjacob,
have you tried to use evaluator.doclib.action.chainedMatchAll or evaluator.doclib.action.chainedMatchOne?
They should run a list of evaluators as specified in http://wiki.alfresco.com/wiki/Document_Library_Predefined_Evaluators.
Anyway I don't know the exact syntax because I never use it and I didn't find any useful example.
have you tried to use evaluator.doclib.action.chainedMatchAll or evaluator.doclib.action.chainedMatchOne?
They should run a list of evaluators as specified in http://wiki.alfresco.com/wiki/Document_Library_Predefined_Evaluators.
Anyway I don't know the exact syntax because I never use it and I didn't find any useful example.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2012 10:18 AM
Hi acarpine,
thanks,I missed that!
cheers, jan
thanks,I missed that!
cheers, jan

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2012 12:06 PM
You can find a useful example in the Alfresco code looking the file slingshot-documentlibrary-context
I just tried and it works!
I just tried and it works!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2012 01:12 PM
Thank you. I'll try it out
