<?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 Invoke external non-transactional services in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/invoke-external-non-transactional-services/m-p/98676#M68068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, i'm using Activiti v5.9 to implement a process with about 10 subprocess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The process performs a lot of invocations to external services (non-transactional) that we would like to make asynchronously. We can use a service task with the option activiti:async="true" to commit the process status at the beggining of each invocation, but it starts a new transaction that remains open during the whole execution of the task. The invocation to these external services can take a long time in some cases, so we would like to implement the call with no transaction active.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The option we found to implement this, is to include for each invocation, a service task, that invokes an internal service that stores the invocation request to be processed in background, and a receive task to sleep the process until the invocation is complete. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This solution complicates the process definition by adding this invoke/wait tasks on each external invocation inside our subprocess. I would like to know if there is a way to "compose" these two activities (service task / receive task) in a new custom task, to simplify our process, avoiding the overhead of defining and calling a new subprocess to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Santiago Medina.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2012 19:09:02 GMT</pubDate>
    <dc:creator>smedina</dc:creator>
    <dc:date>2012-05-07T19:09:02Z</dc:date>
    <item>
      <title>Invoke external non-transactional services</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invoke-external-non-transactional-services/m-p/98676#M68068</link>
      <description>Hi, i'm using Activiti v5.9 to implement a process with about 10 subprocess.The process performs a lot of invocations to external services (non-transactional) that we would like to make asynchronously. We can use a service task with the option activiti:async="true" to commit the process status at th</description>
      <pubDate>Mon, 07 May 2012 19:09:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invoke-external-non-transactional-services/m-p/98676#M68068</guid>
      <dc:creator>smedina</dc:creator>
      <dc:date>2012-05-07T19:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke external non-transactional services</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invoke-external-non-transactional-services/m-p/98677#M68069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you can, by implementing a servicetask that implements the activitybehaviour interface. See the docs for this and e.g the UserTask implementation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 21:09:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invoke-external-non-transactional-services/m-p/98677#M68069</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-05-07T21:09:01Z</dc:date>
    </item>
  </channel>
</rss>

