<?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 Re: Custom task listener in Java in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/custom-task-listener-in-java/m-p/70238#M23109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That exception message is likely a standard Java / Activiti exception message wrapped around the NullPointerException. The problem in your case is likely related to your use of annotations for configuration. Activiti inside of Alfresco (the embedded workflow engine) does not support configuration by annotation, and as such, all of your services that you specified via Autowired will not be set, causing NullPointerException upon access. You need to use Spring XML to define an instance of your listener, expose that bean to the Activiti engine, and then use a delegate expression instead of the class name to pick up the configured instance as a listener.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2018 08:16:49 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2018-09-04T08:16:49Z</dc:date>
    <item>
      <title>Custom task listener in Java</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-task-listener-in-java/m-p/70237#M23108</link>
      <description>Hi,I have the simple following Workflow :&amp;lt;extensionElements&amp;gt; &amp;lt;activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener"&amp;gt; &amp;lt;activiti:field name="script"&amp;gt; &amp;lt;activiti:string&amp;gt;&amp;lt;![CDATA[if (typeof bpm_workflowDueDate != 'undef</description>
      <pubDate>Mon, 03 Sep 2018 09:59:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-task-listener-in-java/m-p/70237#M23108</guid>
      <dc:creator>anakin59490</dc:creator>
      <dc:date>2018-09-03T09:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom task listener in Java</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-task-listener-in-java/m-p/70238#M23109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That exception message is likely a standard Java / Activiti exception message wrapped around the NullPointerException. The problem in your case is likely related to your use of annotations for configuration. Activiti inside of Alfresco (the embedded workflow engine) does not support configuration by annotation, and as such, all of your services that you specified via Autowired will not be set, causing NullPointerException upon access. You need to use Spring XML to define an instance of your listener, expose that bean to the Activiti engine, and then use a delegate expression instead of the class name to pick up the configured instance as a listener.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 08:16:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-task-listener-in-java/m-p/70238#M23109</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-09-04T08:16:49Z</dc:date>
    </item>
  </channel>
</rss>

