<?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 deleteProcessInstance and sync serviceTask in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/deleteprocessinstance-and-sync-servicetask/m-p/181921#M135051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using activiti with bpmns containg only service tasks without the activiti:async="true" setting. Based on my experiences this means that activiti will not store any information about my process instance until the first service task is done. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to make it possible for my processes to be cancelled and i am using the deleteProcessInstance method of RuntimeService. This method requires the processInstanceId of the process instance i want to cancel, and this can be acquired the soonest by using an execution listener for start events, and that is before the first service task. But even if i have the processInstanceId the deleteProcessInstance cannot cancel the process before it is stored in the database. Is that correct? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So provided that my first service task cannot be made activiti:async, because seemingly this introduces a considerable latency in the execution time, my process cannot be interrupted before the first service task ends.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am i correct about all this, or am i missing something? Is there another way to cancel a process or maybe shorten the latency of activiti:async (it can be minutes based on my experiences)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for your support!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Br,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andras&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jan 2015 12:00:51 GMT</pubDate>
    <dc:creator>andrasnaszrai</dc:creator>
    <dc:date>2015-01-13T12:00:51Z</dc:date>
    <item>
      <title>deleteProcessInstance and sync serviceTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleteprocessinstance-and-sync-servicetask/m-p/181921#M135051</link>
      <description>Hi,I am using activiti with bpmns containg only service tasks without the activiti:async="true" setting. Based on my experiences this means that activiti will not store any information about my process instance until the first service task is done. I am trying to make it possible for my processes to</description>
      <pubDate>Tue, 13 Jan 2015 12:00:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleteprocessinstance-and-sync-servicetask/m-p/181921#M135051</guid>
      <dc:creator>andrasnaszrai</dc:creator>
      <dc:date>2015-01-13T12:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: deleteProcessInstance and sync serviceTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deleteprocessinstance-and-sync-servicetask/m-p/181922#M135052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your question if cancelling is only possible after the process instance is persisted, yes it is. The best solution would be to use activity:async="true" and in 5.17.0 with the new async executor the overhead is minimal. So that would be the best way to deal with this requirement to my opinion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 11:57:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deleteprocessinstance-and-sync-servicetask/m-p/181922#M135052</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-01-16T11:57:38Z</dc:date>
    </item>
  </channel>
</rss>

