<?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: Autowiring services in a custom TaskListener for Activiti in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271317#M224447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have setters defined in your class that correspond to each of the properties you are trying to set with Spring?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2012 20:12:47 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2012-07-30T20:12:47Z</dc:date>
    <item>
      <title>Autowiring services in a custom TaskListener for Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271316#M224446</link>
      <description>Hello Friends,I created a new customized TaskListener for an Activiti workflow and am trying to access the various Alfresco Services within it like the WorkflowService, NodeService, RuntimeService using the Spring autowire functionality but it is not working.Please find mentioned below the code writ</description>
      <pubDate>Mon, 30 Jul 2012 14:15:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271316#M224446</guid>
      <dc:creator>varun33</dc:creator>
      <dc:date>2012-07-30T14:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Autowiring services in a custom TaskListener for Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271317#M224447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have setters defined in your class that correspond to each of the properties you are trying to set with Spring?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 20:12:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271317#M224447</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-07-30T20:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Autowiring services in a custom TaskListener for Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271318#M224448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, setters are defined for all of them.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 21:20:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271318#M224448</guid>
      <dc:creator>varun33</dc:creator>
      <dc:date>2012-07-30T21:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Autowiring services in a custom TaskListener for Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271319#M224449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You may be running into something similar to this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?f=34&amp;amp;t=42982" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?f=34&amp;amp;t=42982&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 22:17:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271319#M224449</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-07-30T22:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Autowiring services in a custom TaskListener for Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271320#M224450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is somewhat related but that forum does not provide a proper solution to the problem mentioned here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some of the other discussion forums mention that Activiti standalone does not use the Spring Application context due to which Dependency Injection is not available when customizing its code, there is a way to modify the process engine configuration of Activiti which allows it to work under the Spring context, but I am not sure how and what modification is required here after Activiti has been integrated inside Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if you have idea about whether the above is true or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Varun&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 10:53:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271320#M224450</guid>
      <dc:creator>varun33</dc:creator>
      <dc:date>2012-07-31T10:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Autowiring services in a custom TaskListener for Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271321#M224451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my case the "fix" was to use the service registry instead of injecting the beans in Spring config. I'll see if one of the Activiti guys can shed any light.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 20:45:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271321#M224451</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-08-01T20:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Autowiring services in a custom TaskListener for Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271322#M224452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The activti-integration into Alfresco has no special handling of the spring-context, it's just wired in the main alfresco-context (defined in activiti-context.xml). So if you fail to get services injected into a bean, this is activiti-unrelated. A couple questions to get more insight on your problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;I see you defining property values, but you say in your title "Autowiring". AFAIK, auto wiring won't work in alfresco context&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;How do you connect the existing context (alfresco) with your test-context?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;What is the exact error? BeanNotFoundExceptions or are the beans just NULL?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;How do you "hook" in your task listener into the activiti-engine? Using the BPMNParseListener? Or using activiti:delegateExpression?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 06:18:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271322#M224452</guid>
      <dc:creator>frederikhereman</dc:creator>
      <dc:date>2012-08-02T06:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Autowiring services in a custom TaskListener for Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271323#M224453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see you defining property values, but you say in your title "Autowiring". AFAIK, auto wiring won't work in alfresco context&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;I basically meant Dependency Injection over here using the property values defined in the spring beans xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you connect the existing context (alfresco) with your test-context?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;No special handling has been done for this except for running this as a web extension in Alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the exact error? BeanNotFoundExceptions or are the beans just NULL?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;The properties of the TestTaskListener class do not get initialized which I expect should have been injected using the spring beans xml specified above&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you "hook" in your task listener into the activiti-engine? Using the BPMNParseListener? Or using activiti:delegateExpression?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;userTask ………………&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;extensionElements&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;activiti:taskListener event="create"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;class="com.dsny.task.listeners.TestTaskListener2"&amp;gt;&amp;lt;/activiti:taskListener&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/userTask&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 07:29:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271323#M224453</guid>
      <dc:creator>varun33</dc:creator>
      <dc:date>2012-08-06T07:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Autowiring services in a custom TaskListener for Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271324#M224454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://forums.alfresco.com/forum/developer-discussions/workflow/injecting-spring-bean-task-listener-04192012-0854" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/forum/developer-discussions/workflow/injecting-spring-bean-task-listener-04192012-0854&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 09:58:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271324#M224454</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-05-21T09:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Autowiring services in a custom TaskListener for Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271325#M224455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="228040" __jive_macro_name="thread" _jive_internal="true" class="jive_macro_thread jive_macro link-titled" href="https://community.alfresco.com/thread/228040-how-to-get-alfresco-services-in-workflow-service-task" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 11:47:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowiring-services-in-a-custom-tasklistener-for-activiti/m-p/271325#M224455</guid>
      <dc:creator>anon26949</dc:creator>
      <dc:date>2017-07-06T11:47:42Z</dc:date>
    </item>
  </channel>
</rss>

