<?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: cancel an workflow in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48651#M27869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 May 2011 10:32:08 GMT</pubDate>
    <dc:creator>luisalves00</dc:creator>
    <dc:date>2011-05-05T10:32:08Z</dc:date>
    <item>
      <title>cancel an workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48648#M27866</link>
      <description>hello,It is possible to stop (cancel) and workflow??person 1&amp;nbsp; ——–requestApproval——-&amp;gt;&amp;nbsp; person 2requirement&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson 1 need to cancel the Approval UserTask before the approval…</description>
      <pubDate>Mon, 02 May 2011 13:51:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48648#M27866</guid>
      <dc:creator>luisalves00</dc:creator>
      <dc:date>2011-05-02T13:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: cancel an workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48649#M27867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;think this method should do the trick:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;deleteProcessInstance(java.lang.String processInstanceId, java.lang.String deleteReason)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delete an existing runtime process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a way to know which&amp;nbsp; process are "stale"?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 12:17:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48649#M27867</guid>
      <dc:creator>luisalves00</dc:creator>
      <dc:date>2011-05-03T12:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: cancel an workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48650#M27868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think to delete the workflowinstance works only for your given example, the "approver" process with user-tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think for any other example (where scripts and services are called) there has to be a compensation event defined in the BPMN process definition, to undo the actions already carried out…&amp;nbsp; But this is outside the workflow-engine capability atm. (correct me if i am wrong)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lars&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 09:01:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48650#M27868</guid>
      <dc:creator>lars_b</dc:creator>
      <dc:date>2011-05-04T09:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: cancel an workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48651#M27869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 10:32:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48651#M27869</guid>
      <dc:creator>luisalves00</dc:creator>
      <dc:date>2011-05-05T10:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: cancel an workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48652#M27870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thks lars.b,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regarding to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think for any other example (where scripts and services are called) there has to be a compensation event defined in the BPMN process definition, to undo the actions already carried out… But this is outside the workflow-engine capability atm. (correct me if i am wrong)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Found out this issues yesterday…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using JPA…after an approver (On a user task) approve the request…edit my DB on 3 service tasks. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PROBLEM:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; IF i get an exception on the second service task, I get back to the userTask (and that's great), but on the first service task I've already committed stuff to the DB so I have to "manually" rollback.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 10:33:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48652#M27870</guid>
      <dc:creator>luisalves00</dc:creator>
      <dc:date>2011-05-05T10:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: cancel an workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48653#M27871</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;Are you using spring? Is the JPA on the same datasource as activiti? If so, you could leverage Spring's PlatformTransactionManager and the TransactionAwareDataSourceProxy we use to have JPA and Activiti commit on the same connection…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using multiple datasources and transactions, it's always tricky, not just in Activiti.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 09:18:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48653#M27871</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-05-09T09:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: cancel an workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48654#M27872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi frederikheremans,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not using spring…and using diferent datasources. So it has to be a "manual" rollback &lt;img id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://connect.hyland.com/i/smilies/16x16_smiley-indifferent.png" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 14:44:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48654#M27872</guid>
      <dc:creator>luisalves00</dc:creator>
      <dc:date>2011-05-13T14:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: cancel an workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48655#M27873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's not really an activiti-specific problem, more a general problem (cross-resource transactions). Ideally, XA transactions should be used (if both DS's support this). The only other option I see is to add custom interceptors to the interceptor-stack of the command-context activiti uses internally, to allow you to do some logic (rollback eg) when exception/rollback occurs…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 09:15:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48655#M27873</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-05-23T09:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: cancel an workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48656#M27874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there, I am running into a somewhat similar problem. I would like to be be able to terminate an instance from the runtime but allow it to shut done in a controlled manner by using a service task (or a sequence of steps) to undo actions that the instance has performed. I cannot use transactions here. Ideally I would like to define what the instance should do upon entering the end state. Is there any way to do this in activiti?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matthias&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 00:40:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48656#M27874</guid>
      <dc:creator>matthiasn</dc:creator>
      <dc:date>2011-06-01T00:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: cancel an workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48657#M27875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;using an event listener that listens for the "process end" event might be an option&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 07:06:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48657#M27875</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-06-01T07:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: cancel an workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48658#M27876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ronald, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how would I achieve that? I don't find anything in the documentation, and attaching an execution listener to the endEvent does not work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matthias&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 13:47:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancel-an-workflow/m-p/48658#M27876</guid>
      <dc:creator>matthiasn</dc:creator>
      <dc:date>2011-06-01T13:47:43Z</dc:date>
    </item>
  </channel>
</rss>

