AnsweredAssumed Answered

Missing dependency using ScriptTaskListener

Question asked by rogerofyan on May 22, 2012
Latest reply on Jan 20, 2016 by jbarrez
Hi,

I try to use ScriptTaskListener within a user task, as example
<activiti:taskListener event="complete"  class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
   <activiti:field name="script">
      <activiti:string>
         if(task.getVariableLocal('outcome') == 'N') {
   execution.setVariable('allApproved', false);
}
      </activiti:string>
   </activiti:field>
</activiti:taskListener>

it throws exception while running
Caused by: java.lang.ClassNotFoundException: org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener

It's no luck after I tried to all the jars packaged with activity-5.9 to the classpath. I'd like to know which jar file could provide the dependency?

Thanks.

Outcomes