AnsweredAssumed Answered

java.lang.ClassNotFoundException:org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate

Question asked by sunitanayak83 on Jan 4, 2016
Latest reply on Jan 4, 2016 by vasile.dirla
I need to implement the email task for my application. Right now just to get a hang of how things work in the mail task I created a simple process where I am just sending emails for this, I have a service task, which is configured to sending emails. I am getting a java.lang.ClassNotFoundException:org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate when running the task.

Any idea on how to resolve the class not found error ?

My alfreso.global.properties are :

mail.host=smtp.gmail.com
mail.port=465
mail.username=user@gmail.com
mail.password=password
mail.protocol=smtps
mail.smtps.starttls.enable=true
mail.smtps.auth=true

My script :
var mail = actions.create("mail");                             
mail.parameters.to = jharna.sunita@gmail.com;                             
mail.parameters.subject = "testing 1234556";                                            
mail.parameters.ignore_send_failure = true;                             
mail.execute(companyhome);

Outcomes