AnsweredAssumed Answered

AlfrescoScriptDelegate used in Activiti Suite

Question asked by fguariba on Nov 13, 2015

I'm using Alfresco Enterprise Edition Version 5.0.3 and I installed the new Activiti Suite 1.3.2, using the WAR distribution.
I'm new with the Activiti Suite, but I did some examples with BPMN and step editor, I tried to import the bpmn processes from my old Activiti.
They were successfully imported, but the new Activiti Suite is not recognizing the method "org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate", which I used in every serviceTask in my old workflows.
When I start the workflow, the next step is a service task and I see the following exception on log file:

03:39:30,498 [http-bio-8080-exec-155] DEBUG org.springframework.web.servlet.DispatcherServlet  - Could not complete request
org.activiti.engine.ActivitiException: couldn't instantiate class org.alfresco.repo.workflow.activiti.script.AlfrescoScriptD
        at org.activiti.engine.impl.util.ReflectUtil.instantiate(
        at org.activiti.engine.impl.bpmn.helper.ClassDelegate.instantiateDelegate(
        at org.activiti.engine.impl.bpmn.helper.ClassDelegate.getActivityBehaviorInstance(
        at org.activiti.engine.impl.bpmn.helper.ClassDelegate.execute(
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(

This "AlfrescoScriptDelegate" class I have always used with field "script", where I could write my Javascript code.

So my question is what is the best way to solve this problem? Is there another way to use my same logic? Or a way to make Activiti Suite recognize this class from repo? I'm not finding a good way.

Thank you for your attention and your help,

Best regards,

Francisco Guariba