<?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 fileds in a ServiceTask ( ... a class implementing JavaDelegate) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-fileds-in-a-servicetask-a-class-implementing/m-p/198920#M152050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for responding, yes activiti is a dependency and we are using expressions like ${mySpringBean.myMethod}. I'm not exactly sure what is happening, but I'll guess it is a spring configuration issue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our junits do wire activiti service task objects, but if the injected&amp;nbsp; objects themselves need autowiring.. those autowired fields are always null. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since posting the above I've learnt that all gets wired up correctly at deploy time (using a different context).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said not sure whats going on but have a workaround for the junits… &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;john&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2015 08:23:06 GMT</pubDate>
    <dc:creator>johnm</dc:creator>
    <dc:date>2015-03-12T08:23:06Z</dc:date>
    <item>
      <title>Autowiring fileds in a ServiceTask ( ... a class implementing JavaDelegate)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-fileds-in-a-servicetask-a-class-implementing/m-p/198918#M152048</link>
      <description>HiWe are introducing some Activiti flow's into a well established Spring 4.11 project.A place where we are stumbling is autowiring of existing spring artificacts into java service tasksWe've a handful of java classes implementing JavaDelegate. When we @Autowire a (hibernate dao) for example(or a myb</description>
      <pubDate>Tue, 10 Feb 2015 13:27:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowiring-fileds-in-a-servicetask-a-class-implementing/m-p/198918#M152048</guid>
      <dc:creator>johnm</dc:creator>
      <dc:date>2015-02-10T13:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Autowiring fileds in a ServiceTask ( ... a class implementing JavaDelegate)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-fileds-in-a-servicetask-a-class-implementing/m-p/198919#M152049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, first of all, i am assuming you are using activiti as a dependency in your Spring project,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you calling these service task Java delegates? Using an expression like ${mySpringBean.myMethod} ? Because the activiti:class won't work, it will do as advertised and create a instance of the class when needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;The documentation is really light here (afaics). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cause there is not much to it, except using expressions. Which is in the docs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 12:02:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowiring-fileds-in-a-servicetask-a-class-implementing/m-p/198919#M152049</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-02-18T12:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Autowiring fileds in a ServiceTask ( ... a class implementing JavaDelegate)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/autowiring-fileds-in-a-servicetask-a-class-implementing/m-p/198920#M152050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for responding, yes activiti is a dependency and we are using expressions like ${mySpringBean.myMethod}. I'm not exactly sure what is happening, but I'll guess it is a spring configuration issue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our junits do wire activiti service task objects, but if the injected&amp;nbsp; objects themselves need autowiring.. those autowired fields are always null. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since posting the above I've learnt that all gets wired up correctly at deploy time (using a different context).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said not sure whats going on but have a workaround for the junits… &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;john&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 08:23:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/autowiring-fileds-in-a-servicetask-a-class-implementing/m-p/198920#M152050</guid>
      <dc:creator>johnm</dc:creator>
      <dc:date>2015-03-12T08:23:06Z</dc:date>
    </item>
  </channel>
</rss>

