AnsweredAssumed Answered

New Custom Evaluator

Question asked by mrinal3199 on Feb 11, 2014
Latest reply on Feb 12, 2014 by mrinal3199
Hi,

  What I need to achieve is like below :
- Where ever in document library, I have folder with some specific names eg: flder named as "Extranet" or "Published", I need to show one extra custom action of Bulk operation.
Currently I can see that action to every folders instead specific folder named as such..

I have created an evaluator in my share jar in the package "org.alfresco.web.evaluator.doclib.action" named as NameEqualsEvaluator.java. And in the share cnfig i have defined an action for the folders and evaluator id is given as "evaluator.doclib.action.isInstanceType". So, in Custom-slinshot-applicaton.xml, i have defined this id with parent as "org.alfresco.web.evaluator.doclib.action.NameEqualsEvaluator". I build this jar and laced it in "C:\alfresco\tomcat\webapps\share\WEB-INF\lib". I also have another utils jar which am keeping in "C:\alfresco\tomcat\webapps\alfresco\WEB-INF\lib". The problem is while starting the server, it is giving errr as:

org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'evaluator.doclib.action.isInstanceType' defined in URL [jar:file:/C:/Alfresco/tomcat/webapps/share/WEB-INF/lib/SkandiaShare.jar!/alfresco/web-extension/custom-slingshot-application-context.xml]: Could not resolve parent bean definition 'org.alfresco.web.evaluator.doclib.action.NameEqualsEvaluator'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.alfresco.web.evaluator.doclib.action.NameEqualsEvaluator' is defined

I am not getting why this class is not being loaded but every webscripts which i have in utils jar are working fine.

Please suggest me how to reslve this issue.

this way my Evaluator not working.

Anyone have achieved like this in alfresco share 4?

Thanks in advance

Outcomes