How to create custom action Evaluator in Alfresco 5.0 ?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2015 04:37 AM
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
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
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2015 02:19 AM
It seems no one from Alfresco development community is interested to resolve others problems.
Thanks
Thanks
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2015 03:51 PM
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.
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2015 04:27 AM
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
Thanks alot for your reply.
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

Thanks alot for your reply.
