<?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: How to Autowire Spring Bean in JavaDelegate in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-autowire-spring-bean-in-javadelegate/m-p/82671#M55427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you define your java-delegate in spring, you can wire in as many services/beans as you want. The only difference is they you don't use the "activiti:class" in you're service-task, but rather, you point to the bean in your spring-context that implements JavaDelegate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;serviceTask id="serviceTask" activiti:delegateExpression="${delegateExpressionBean}" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;…&lt;BR /&gt;&lt;BR /&gt;&amp;lt;bean id="delegateExpressionBean" class="org.activiti.my.java.Delegate"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="orderService" value="org.activiti.my.order.Service" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;See user guide for more details.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2012 13:27:36 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2012-10-22T13:27:36Z</dc:date>
    <item>
      <title>How to Autowire Spring Bean in JavaDelegate</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-autowire-spring-bean-in-javadelegate/m-p/82670#M55426</link>
      <description>Is it possible to autowire a spring bean in my javadelegate?If not, is it possible to set a spring bean as a data member in my javadelegate using a delegate expression?Basically, I need to know if there is any way to call bean methods from a javaDelegate class I have written.&amp;nbsp; I know I can do it usi</description>
      <pubDate>Mon, 22 Oct 2012 13:18:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-autowire-spring-bean-in-javadelegate/m-p/82670#M55426</guid>
      <dc:creator>dmoss18</dc:creator>
      <dc:date>2012-10-22T13:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Autowire Spring Bean in JavaDelegate</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-autowire-spring-bean-in-javadelegate/m-p/82671#M55427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you define your java-delegate in spring, you can wire in as many services/beans as you want. The only difference is they you don't use the "activiti:class" in you're service-task, but rather, you point to the bean in your spring-context that implements JavaDelegate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;serviceTask id="serviceTask" activiti:delegateExpression="${delegateExpressionBean}" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;…&lt;BR /&gt;&lt;BR /&gt;&amp;lt;bean id="delegateExpressionBean" class="org.activiti.my.java.Delegate"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="orderService" value="org.activiti.my.order.Service" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;See user guide for more details.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 13:27:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-autowire-spring-bean-in-javadelegate/m-p/82671#M55427</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-22T13:27:36Z</dc:date>
    </item>
  </channel>
</rss>

