<?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: Activiti 6 Use custom bean in listener in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-use-custom-bean-in-listener/m-p/37339#M15714</link>
    <description>&lt;P&gt;If you are using the attribute activiti:class, it doesn't resolve the wiring of Spring beans.&lt;/P&gt;
&lt;P&gt;In order to enable the wiring for your Spring beans, you have to declare it using the attribute activiti:delegateExpression setting its own Spring Bean Id such as the following:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;serviceTask id="thisIsMyServiceTaskId"&lt;BR /&gt;             name="Service Task that needs Autowiring"
             activiti:delegateExpression="${myServiceTaskSpringBeanId}"/&amp;gt;&lt;/PRE&gt;
&lt;P&gt;You can find a complete example in the following tutorial:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://hub.alfresco.com/t5/alfresco-process-services/activiti-enterprise-developer-series-service-tasks-spring-bean/ba-p/287845#jive_content_id_Using_Field_Injection_in_the_Spring_Bean_Java_Delegate_" target="_self" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-process-services/activiti-enterprise-developer-series-service-tasks-spring-bean/ba-p/287845#jive_content_id_Using_Field_Injection_in_the_Spring_Bean_Java_Delegate_&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 17:35:08 GMT</pubDate>
    <dc:creator>openpj</dc:creator>
    <dc:date>2023-03-29T17:35:08Z</dc:date>
    <item>
      <title>Activiti 6 Use custom bean in listener</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-use-custom-bean-in-listener/m-p/37338#M15713</link>
      <description>&lt;P&gt;I am using activiti 6.&lt;/P&gt;&lt;P&gt;I want to configure custom bean which will be used in tasklistener.&lt;/P&gt;&lt;P&gt;Where I can register ?&lt;/P&gt;&lt;P&gt;Other issue is how can I get member os group in TaskListner?&lt;/P&gt;&lt;P&gt;Autowired service is not working in activiti.&lt;/P&gt;&lt;PRE&gt;public class CreateTask implements TaskListener {
}&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Mar 2023 14:10:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-6-use-custom-bean-in-listener/m-p/37338#M15713</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2023-03-27T14:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 6 Use custom bean in listener</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-use-custom-bean-in-listener/m-p/37339#M15714</link>
      <description>&lt;P&gt;If you are using the attribute activiti:class, it doesn't resolve the wiring of Spring beans.&lt;/P&gt;
&lt;P&gt;In order to enable the wiring for your Spring beans, you have to declare it using the attribute activiti:delegateExpression setting its own Spring Bean Id such as the following:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;serviceTask id="thisIsMyServiceTaskId"&lt;BR /&gt;             name="Service Task that needs Autowiring"
             activiti:delegateExpression="${myServiceTaskSpringBeanId}"/&amp;gt;&lt;/PRE&gt;
&lt;P&gt;You can find a complete example in the following tutorial:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://hub.alfresco.com/t5/alfresco-process-services/activiti-enterprise-developer-series-service-tasks-spring-bean/ba-p/287845#jive_content_id_Using_Field_Injection_in_the_Spring_Bean_Java_Delegate_" target="_self" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-process-services/activiti-enterprise-developer-series-service-tasks-spring-bean/ba-p/287845#jive_content_id_Using_Field_Injection_in_the_Spring_Bean_Java_Delegate_&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 17:35:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-6-use-custom-bean-in-listener/m-p/37339#M15714</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2023-03-29T17:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 6 Use custom bean in listener</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-use-custom-bean-in-listener/m-p/37340#M15715</link>
      <description>&lt;P&gt;I am using activiti community version,not enterprise.&lt;/P&gt;&lt;P&gt;What ever you have suggested that is applicable to enterprise version only and tasklistner is on user task.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 02:56:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-6-use-custom-bean-in-listener/m-p/37340#M15715</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2023-04-03T02:56:12Z</dc:date>
    </item>
  </channel>
</rss>

