<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating custom evaluator in alfresco 4 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271696#M224826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to define my custom evaluator in Alfresco Explorer but I'm not able to use it in Alfresco Share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Seem that the Spring bean is not correctly loaded at startup time (so the Evaluator is not loaded)…but I can't figure out what I'm missing…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe you have a slightly different issue because you don't see any exception in the alfresco.log, anyway&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in case of any progress I will let you know&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2012 08:35:04 GMT</pubDate>
    <dc:creator>acarpine</dc:creator>
    <dc:date>2012-03-09T08:35:04Z</dc:date>
    <item>
      <title>Creating custom evaluator in alfresco 4</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271692#M224822</link>
      <description>Hi,I need to create custom evaluator in alfresco enterprise 4 (documentLibrary folder action).If there is specific type of folder then only show this action else not.I followed below steps but its not much useful.1) share-documentlibrary-config.xml&amp;lt;action id="folder-assign-workflow" type="javascr</description>
      <pubDate>Tue, 06 Mar 2012 10:56:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271692#M224822</guid>
      <dc:creator>g_rathod</dc:creator>
      <dc:date>2012-03-06T10:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom evaluator in alfresco 4</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271693#M224823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi g_rathod,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a similar problem trying to use a custom Evaluator for a custom action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Have you tried to &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;public class ClmsDraftBasedEvaluator implements ActionEvaluator&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; instead of &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;public class ClmsDraftBasedEvaluator extends BaseEvaluator&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Have you any interesting log message in &lt;/SPAN&gt;&lt;STRONG&gt;alfresco.log&lt;/STRONG&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 14:22:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271693#M224823</guid>
      <dc:creator>acarpine</dc:creator>
      <dc:date>2012-03-07T14:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom evaluator in alfresco 4</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271694#M224824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;[…]&lt;BR /&gt;&lt;BR /&gt;2)&amp;nbsp; &lt;STRONG&gt;slingshot-documentlibrary-context.xml&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; &amp;lt;bean id="evaluator.doclib.action.customDraftBased" class="com.clms.web.evaluator.CustomDraftBasedEvaluator" /&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;3) &lt;STRONG&gt; CustomDraftBasedEvaluator.java&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;public class ClmsDraftBasedEvaluator extends BaseEvaluator {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public boolean evaluate(JSONObject jsonObject) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println("*** JSONObject&amp;nbsp; ::" + jsonObject);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;btw I believe that the attribute class of your bean should match the class name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You used &lt;/SPAN&gt;&lt;STRONG&gt;ClmsDraftBasedEvaluator&lt;/STRONG&gt;&lt;SPAN&gt; as evaluator class name and &lt;/SPAN&gt;&lt;STRONG&gt;CustomDraftBasedEvaluator&lt;/STRONG&gt;&lt;SPAN&gt; as class name reference in your bean. Could you check if you have an exception caused by Spring during startup (alfresco.log)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 17:56:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271694#M224824</guid>
      <dc:creator>acarpine</dc:creator>
      <dc:date>2012-03-07T17:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom evaluator in alfresco 4</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271695#M224825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi acarpine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry it was typo actually it is "CustomDraftBasedEvaluator"&amp;nbsp; instead "ClmsDraftBasedEvaluator".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and using evaluator As I have observed out of box things they have extending BaseEvaluator everywhere instead "ActionEvaluator".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try with your given approach and check again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you able to get your custom evaluator? actually I need to check with specific type of space only show my custom action, out of box they had given for aspect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any clue will be fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 07:07:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271695#M224825</guid>
      <dc:creator>g_rathod</dc:creator>
      <dc:date>2012-03-09T07:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom evaluator in alfresco 4</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271696#M224826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to define my custom evaluator in Alfresco Explorer but I'm not able to use it in Alfresco Share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Seem that the Spring bean is not correctly loaded at startup time (so the Evaluator is not loaded)…but I can't figure out what I'm missing…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe you have a slightly different issue because you don't see any exception in the alfresco.log, anyway&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in case of any progress I will let you know&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 08:35:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271696#M224826</guid>
      <dc:creator>acarpine</dc:creator>
      <dc:date>2012-03-09T08:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom evaluator in alfresco 4</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271697#M224827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi acarpine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even I have same issue, I could not find my evaluator "evaluator.doclib.action.customDraftBased"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my tomcat log says : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2012-03-12 11:54:16,906&amp;nbsp; WARN&amp;nbsp; [web.scripts.ActionEvaluatorHelper] [http-8080-26] Evaluator 'evaluator.doclib.action.customDraftBased' not found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I need to achieve is like below :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Where ever in document library, I have clm&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;raft type folder I need to show one extra custom action of workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I can see that action to every folders instead specific type of folder ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this way my Evaluator not working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have achieved like this in alfresco share 4?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 06:33:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271697#M224827</guid>
      <dc:creator>g_rathod</dc:creator>
      <dc:date>2012-03-12T06:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom evaluator in alfresco 4</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271698#M224828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Friends,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally I resolved this issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can look at : &lt;/SPAN&gt;&lt;A href="http://alfrescocms.blogspot.in/2012/03/custom-document-library-action.html" rel="nofollow noopener noreferrer"&gt;http://alfrescocms.blogspot.in/2012/03/custom-document-library-action.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 10:50:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271698#M224828</guid>
      <dc:creator>g_rathod</dc:creator>
      <dc:date>2012-03-13T10:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom evaluator in alfresco 4</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271699#M224829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi g_rathod,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its really awesome job u did.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 10:53:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271699#M224829</guid>
      <dc:creator>power</dc:creator>
      <dc:date>2012-03-13T10:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom evaluator in alfresco 4</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271700#M224830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello Friends,&lt;BR /&gt;Finally I resolved this issue:&lt;BR /&gt;you can look at : &lt;A href="http://alfrescocms.blogspot.in/2012/03/custom-document-library-action.html" rel="nofollow noopener noreferrer"&gt;http://alfrescocms.blogspot.in/2012/03/custom-document-library-action.html&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Ops…I believe that my goal is different from yours because I'm trying to use a "new" evaluator &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(a java class that implements an Alfresco evaluator). You solved the problem just using a specific &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;configuration for an Alfresco evaluator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway good job g_rathod &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 11:39:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271700#M224830</guid>
      <dc:creator>acarpine</dc:creator>
      <dc:date>2012-03-13T11:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom evaluator in alfresco 4</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271701#M224831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&amp;nbsp; acarpine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are right, for simple type check this solution works, but when we need to check some more advance conditions we need our evaluator extending BaseEvaluator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I already tried creating new evaluator by extending BaseEvaluator, but somehow that class is not loading at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even though my jar file contains that class, bean is not identifying that class and throws an exception for ClassNotFound.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 07:00:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271701#M224831</guid>
      <dc:creator>g_rathod</dc:creator>
      <dc:date>2012-03-14T07:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom evaluator in alfresco 4</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271702#M224832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi acarpine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can run my custom evaluator class (my new java class) , for that its important you copy your webapps/alfresco/WEB-INF/lib&amp;nbsp;&amp;nbsp; jar file to&amp;nbsp; share/WEB-INF/lib.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can we get NodeRef on which evaluator is written? any idea? we have jsonObject which gives here type, but for NodeRef need to check deeply.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 08:27:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271702#M224832</guid>
      <dc:creator>g_rathod</dc:creator>
      <dc:date>2012-03-14T08:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom evaluator in alfresco 4</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271703#M224833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi acarpine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your solution is here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://alfrescocms.blogspot.in/2012/03/create-new-evaluator-in-documentlibrary.html" rel="nofollow noopener noreferrer"&gt;http://alfrescocms.blogspot.in/2012/03/create-new-evaluator-in-documentlibrary.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;rate helpful if you think.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 11:53:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-custom-evaluator-in-alfresco-4/m-p/271703#M224833</guid>
      <dc:creator>g_rathod</dc:creator>
      <dc:date>2012-03-14T11:53:42Z</dc:date>
    </item>
  </channel>
</rss>

