<?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 How to get TaskService in a class that implements taskListener in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-taskservice-in-a-class-that-implements-tasklistener/m-p/10816#M4795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Greetings to All, Anyone know how to get&amp;nbsp; taskService service reference in a class that implements the&amp;nbsp; TaskListener to create an attachment.&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;If anyone can help it would be greatly appreciate.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2018 12:38:55 GMT</pubDate>
    <dc:creator>chiranjeev</dc:creator>
    <dc:date>2018-11-13T12:38:55Z</dc:date>
    <item>
      <title>How to get TaskService in a class that implements taskListener</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-taskservice-in-a-class-that-implements-tasklistener/m-p/10816#M4795</link>
      <description>Greetings to All, Anyone know how to get&amp;nbsp; taskService service reference in a class that implements the&amp;nbsp; TaskListener to create an attachment.&amp;nbsp;&amp;nbsp;If anyone can help it would be greatly appreciate.</description>
      <pubDate>Tue, 13 Nov 2018 12:38:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-taskservice-in-a-class-that-implements-tasklistener/m-p/10816#M4795</guid>
      <dc:creator>chiranjeev</dc:creator>
      <dc:date>2018-11-13T12:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TaskService in a class that implements taskListener</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-taskservice-in-a-class-that-implements-tasklistener/m-p/10817#M4796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at the&amp;nbsp;API of the DelegateTask you are passed in the listener, you will see that you can get a DelegateExecution via getExecution(), which in turn allows you to retrieve EngineServices via getEngineServices() - and if you look at that API, it allows you to retrieve various services, among them the TaskService.&lt;/P&gt;&lt;P&gt;Additionally, if you are developing in APS or another context with an annotation-based Spring dependency injection environment, you can simply have Spring inject the TaskService via @Autowired (provided you set&amp;nbsp;your listener up to be a bean via @Component and access it via a delegate expression in your processes instead of a using it as a simple class-based listener).&lt;/P&gt;&lt;P&gt;Also note that, if you are working in APS, attachments are not handled via the TaskService. APS is a hack bolted on top of the core Activiti engine and it has its own RelatedContentService for dealing with attachments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 09:09:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-taskservice-in-a-class-that-implements-tasklistener/m-p/10817#M4796</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-11-14T09:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TaskService in a class that implements taskListener</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-taskservice-in-a-class-that-implements-tasklistener/m-p/10818#M4797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 13px;"&gt;I have a file prepared and that has to be displayed in "Display Value" filed in the form.&lt;/SPAN&gt;&lt;BR style="color: #263238; font-size: 13px;" /&gt;&lt;SPAN style="color: #263238; font-size: 13px;"&gt;Process:&lt;/SPAN&gt;&lt;BR style="color: #263238; font-size: 13px;" /&gt;&lt;SPAN style="color: #263238; font-size: 13px;"&gt;1.File will be prepared based on some business logic&lt;/SPAN&gt;&lt;BR style="color: #263238; font-size: 13px;" /&gt;&lt;SPAN style="color: #263238; font-size: 13px;"&gt;2.I want to write a listener class which attaches the prepared file to a particular task&lt;/SPAN&gt;&lt;BR style="color: #263238; font-size: 13px;" /&gt;&lt;SPAN style="color: #263238; font-size: 13px;"&gt;3.finally i want to display the attached file in "Display Value" field in the form as mentioned above&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #263238; font-size: 13px;"&gt;any help will be &lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;would be greatly appreciate.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:41:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-taskservice-in-a-class-that-implements-tasklistener/m-p/10818#M4797</guid>
      <dc:creator>chiranjeev</dc:creator>
      <dc:date>2018-11-14T13:41:01Z</dc:date>
    </item>
  </channel>
</rss>

