It looks like I was having a couple of different problems, the combination of which confused things. There were two issues:
* I was running against 5.18.0 which has some ScriptTaskListener issues that went away when I upgraded to 5.21.0
* The Eclipse Designer specifies the use of org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener as the script task listener when I update models using the gaphical BPMN editor. I have to manually change it back to org.activiti.engine.impl.bpmn.listener.ScriptTaskListener. It took me awhile to figure out that this was happening with any change to the model, not just a change to the TaskListener specification for that task. It makes sense, but the combination of errors was confusing.
In any case org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener is not shipped in the Maven dependencies – not surprising given the package name. I can build it myself from source, but I was wondering if there was a pre-existing Maven dependency for it.
The real issue is that I would like to use the Alfresco ScriptTaskListener implementation because of the extra objects that it injects - specifically the process variables. I'm going to provide a GrailsScriptTaskListener and GrailsScriptExecutionListener that will inject the Grails (Spring) application context and logger so that scripts have full access to the Grails scope.