cancel
Showing results for 
Search instead for 
Did you mean: 

How to create custom action Evaluator in Alfresco 5.0 ?

abhinav
Champ on-the-rise
Champ on-the-rise
Hi  Team,
Can you please advice me how can i create custom action Evaluator in alfresco 5.0 enterprise ?

I used to create custom Evaluator in Alfresco 4.2.3.3 enterprise as given below:

import org.json.JSONObject;
import alfresco.web.evaluator.BaseEvaluator;

//example
public class IsCommentUpdated extends BaseEvaluator{

   @Override
   public boolean evaluate(JSONObject arg0) {
      //… code
      return false;
   }
}

"BaseEvaluator" class was present in alfresco-share-4.2.3.3.jar file. but in Alfresco 5.x i can see this jar file.

What is the location of Evaluator classes in 5.x ??


Regards,
Abhinav
3 REPLIES 3

abhinav
Champ on-the-rise
Champ on-the-rise
It seems no one from Alfresco development community is interested to resolve others problems.

Thanks

deepak1987
Star Contributor
Star Contributor
Hi Abhinav,

BaseEvaluator class in 5.x is in same package (org.alfresco.web.evaluator) but moved to tomcat/webapps/share/WEB-INF/classes/org/alfresco/web/evaluator/ path.


Thank you Deepak.
I found it already.. it seems alfresco removed it from jar file (alfresco-share-4.2.x.jar) and placed to folder under share/WEB-INF/classes/org/alfresco/web/evaluator/

It seems you can not refer to these classes without creating a zip out of it and place them manually in IDE (eclipse) classpath.
Alfresco 5 onwards it is so called Public apis Smiley Happy

Thanks alot for your reply.