<?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: JavaDelegate injecting filed  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javadelegate-injecting-filed/m-p/244705#M197835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This seems to be not possbile as activiti uses different class loader when it comes to Java Service Calls.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to create your objects in class itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try adding Application Context object as a process instance variable and retrieve beans from that application object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option is using groovy script and calling your class method from that script. You class is already configured as spring bean so object will be available to activiti for execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if this idea works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit 1: Please ignore above ideas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are 2 ways to achieve this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Use Delegate Expression&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Use Expression.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Nov 2016 23:57:30 GMT</pubDate>
    <dc:creator>anilmann</dc:creator>
    <dc:date>2016-11-26T23:57:30Z</dc:date>
    <item>
      <title>JavaDelegate injecting filed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javadelegate-injecting-filed/m-p/244704#M197834</link>
      <description>Hi I have a Spring bean which acts as Service delegate class. I am having trouble in injecting a filed .. Getting following error Field definition uses unexisting field 'className' on class com.sun.proxy.$Proxy229My delegate Class————–@Component("agileIntegrationDelegate")@Transactionalpublic class</description>
      <pubDate>Fri, 11 Nov 2016 23:56:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javadelegate-injecting-filed/m-p/244704#M197834</guid>
      <dc:creator>nuthan</dc:creator>
      <dc:date>2016-11-11T23:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: JavaDelegate injecting filed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javadelegate-injecting-filed/m-p/244705#M197835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This seems to be not possbile as activiti uses different class loader when it comes to Java Service Calls.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to create your objects in class itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try adding Application Context object as a process instance variable and retrieve beans from that application object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option is using groovy script and calling your class method from that script. You class is already configured as spring bean so object will be available to activiti for execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if this idea works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit 1: Please ignore above ideas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are 2 ways to achieve this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Use Delegate Expression&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Use Expression.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2016 23:57:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javadelegate-injecting-filed/m-p/244705#M197835</guid>
      <dc:creator>anilmann</dc:creator>
      <dc:date>2016-11-26T23:57:30Z</dc:date>
    </item>
  </channel>
</rss>

