<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Exception: ScriptTaskListener doesn't implement interface in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exception-scripttasklistener-doesn-t-implement-interface/m-p/299029#M252159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco 4.2c Community, Activiti workflow…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the exception I'm getting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Apr 11, 2013 11:15:45 AM org.activiti.engine.impl.interceptor.CommandContext close&lt;BR /&gt;SEVERE: Error while closing command context&lt;BR /&gt;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&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.bpmn.helper.ClassDelegate.getExecutionListenerInstance(ClassDelegate.java:82)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.bpmn.helper.ClassDelegate.notify(ClassDelegate.java:68)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:42)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll post the whole stacktrace if anyone is interested…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the Activiti workflow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://i.imgur.com/qCxmI1J.jpg" rel="nofollow noopener noreferrer"&gt;http://i.imgur.com/qCxmI1J.jpg&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We start off with a task in the 'Receive Task 1'. We call a Javascript webscript to move task to the next state, which calls 'signal' on the WorkFlowPath of the task. The task passes through the first ExclusiveGateway fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a Java listener on the SequenceFlow between the two ExclusiveGateways. It triggers, and sets a flow variable using DelegateExecution.setVariable(). The Listener ends, and then we see the above exception thrown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The exception is caught by the javascript webscript's exception handler. I'm guessing that the 'signal' being called on the task when it's in the 'Receive Task 1' is contained within a transaction all the way through the two ExclusiveGateways. But why the heck is it throwing the above exception? Makes no sense to me. None of my code is in the stack trace. My listener on the SequenceFlow between the two ExclusiveGateways executes without error and sets the variable used in the next ExclusiveGateway's decision.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any clues as to what the problem is here? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting this error after rewriting my workflow because of this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.alfresco.com/forum/developer-discussions/workflow/trigger-activiti-workflow-task-sitting-receivetask-causes-loop" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/forum/developer-discussions/workflow/trigger-activiti-workflow-task-sitting-receivetask-causes-loop&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this thread gets a few more responses. Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2013 15:47:04 GMT</pubDate>
    <dc:creator>ungawunga</dc:creator>
    <dc:date>2013-04-11T15:47:04Z</dc:date>
    <item>
      <title>Exception: ScriptTaskListener doesn't implement interface</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-scripttasklistener-doesn-t-implement-interface/m-p/299029#M252159</link>
      <description>Alfresco 4.2c Community, Activiti workflow…This is the exception I'm getting:Apr 11, 2013 11:15:45 AM org.activiti.engine.impl.interceptor.CommandContext closeSEVERE: Error while closing command contextorg.activiti.engine.ActivitiException: org.alfresco.repo.workflow.activiti.tasklistener.ScriptTask</description>
      <pubDate>Thu, 11 Apr 2013 15:47:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-scripttasklistener-doesn-t-implement-interface/m-p/299029#M252159</guid>
      <dc:creator>ungawunga</dc:creator>
      <dc:date>2013-04-11T15:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: ScriptTaskListener doesn't implement interface</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-scripttasklistener-doesn-t-implement-interface/m-p/299030#M252160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update: On 'Script Task 1' and 'Receive Task 3', there are javascript listeners. They call javascript functions that move our models (subclasses of cm:folder) to a different folder. 'Receive Task 1' and 'Receive Task 2' also have the same javascript listeners, and don't exhibit this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I remove the javascript listeners from 'Script Task 1' and 'Receive Task 3', I don't get the exception anymore. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug in Activit and Alfresco? Seems like it to me. I'm going to see if I can get around this by throwing some bogus pass-through Script Tasks in between them, as I do need my listeners to be called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've run into this sort of problems before, where if you have a Receive Task followed by a Script Task, the workflow tasks won't be held in the Receive Task like they should be. They just pass right through, as if they were Script Tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 19:15:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-scripttasklistener-doesn-t-implement-interface/m-p/299030#M252160</guid>
      <dc:creator>ungawunga</dc:creator>
      <dc:date>2013-04-11T19:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: ScriptTaskListener doesn't implement interface</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-scripttasklistener-doesn-t-implement-interface/m-p/299031#M252161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok then… &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the appropriate method for a listener, in the context of one task, to signal other tasks to move to the next step in their workflow? They're all in separate instances of the same Activiti workflow, but I'm having a hard time getting past the above exception when calling workflowService.Signal( otherTaskPath, null ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 21:22:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-scripttasklistener-doesn-t-implement-interface/m-p/299031#M252161</guid>
      <dc:creator>ungawunga</dc:creator>
      <dc:date>2013-04-16T21:22:01Z</dc:date>
    </item>
  </channel>
</rss>

