Designer puts Task listener class where Execution listener class should be

Description

On any task, in Listeners, create a new Execution listener. Select 'Alfresco script'. I've used 'start' event, haven't checked if this happens with other events. Enter some javascript and save the listener configuration.

In the XML, the node is correctly 'activiti:executionListener' but the class is org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener. When the workflow is deployed and run you get this error:

"SEVERE: Error while closing command context org.activiti.engine.ActivitiException: org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener doesn't implement interface org.activiti.engine.delegate.ExecutionListener nor interface org.activiti.engine.delegate.JavaDelegate"

Changing the class name to org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener makes the error go away.

Environment

None

Assignee

Tijs Rademakers

Reporter

Martin Cosgrave

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure