<?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 Usage of service tasks in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/usage-of-service-tasks/m-p/40291#M16895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bunch of questions about usage of service tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I need to request external services via rest calls. My project is built using Spring Boot, so I use Spring RestTemplate. Is web service task more suitable for that purpose?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, now for each process I have at least one class that implements JavaDelegate. Maybe, there are any best practices to minimize code and make it more readable and reusable? Is there any possibility to call rest service from the process definition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any code examples or github links.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2018 09:53:13 GMT</pubDate>
    <dc:creator>aminaiser</dc:creator>
    <dc:date>2018-09-04T09:53:13Z</dc:date>
    <item>
      <title>Usage of service tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/usage-of-service-tasks/m-p/40291#M16895</link>
      <description>Hello everyone,I have a bunch of questions about usage of service tasks.First, I need to request external services via rest calls. My project is built using Spring Boot, so I use Spring RestTemplate. Is web service task more suitable for that purpose?Second, now for each process I have at least one</description>
      <pubDate>Tue, 04 Sep 2018 09:53:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/usage-of-service-tasks/m-p/40291#M16895</guid>
      <dc:creator>aminaiser</dc:creator>
      <dc:date>2018-09-04T09:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Usage of service tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/usage-of-service-tasks/m-p/40292#M16896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Webservice Task isn't designed to do REST calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You can reuse you JavaDelegate classes using expression and call your service like&lt;/P&gt;&lt;PRE class="" style="color: black; background: #eeeeee; border: 1px dashed #666666; padding: 1.25em 1.5625em 1.125em;"&gt;&lt;CODE data-lang="xml" style="color: black; font-weight: normal;"&gt;activiti:expression="#{myService.doSomething()}"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you are using APS, there is a REST call task that you can use to do REST calls. If you are in Activiti community then you'll have to implement a REST service and call it from service tasks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 15:42:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/usage-of-service-tasks/m-p/40292#M16896</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-09-11T15:42:48Z</dc:date>
    </item>
  </channel>
</rss>

