AnsweredAssumed Answered

Creating custom evaluator in alfresco 4

Question asked by g_rathod on Mar 6, 2012
Latest reply on Mar 14, 2012 by g_rathod
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

<action id="folder-assign-workflow" type="javascript" label="actions.folder.assign-workflow">
               <param name="function">onActionAssignWorkflow</param>

 <actionGroup id="folder-browse">
               <action index="261" id="folder-assign-workflow" icon="folder-edit-properties" label="Start Custom Workflow"/>

2)  slingshot-documentlibrary-context.xml

 <bean id="evaluator.doclib.action.customDraftBased" class="com.clms.web.evaluator.CustomDraftBasedEvaluator" />


public class ClmsDraftBasedEvaluator extends BaseEvaluator {

   public boolean evaluate(JSONObject jsonObject) {
      System.out.println("*** JSONObject  ::" + jsonObject);
      return true;


It will not showing me my custom action. I tried keeping action and actionGroup inside share-config-custom.xml  action appears but at that time evaluator did not work.

Any help on this appreciated.