<?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: Proposal: RuntimeService.terminateProcessInstance(String id) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/proposal-runtimeservice-terminateprocessinstance-string-id/m-p/53029#M31306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think it would be nice to see that the process instance has ended with a terminate.&lt;BR /&gt;Do you plan to support that as well?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;It's not yet planned, but I like the idea. I'll have a look at it and see how much effort it is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Falko&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2011 18:47:54 GMT</pubDate>
    <dc:creator>falko_menge</dc:creator>
    <dc:date>2011-11-16T18:47:54Z</dc:date>
    <item>
      <title>Proposal: RuntimeService.terminateProcessInstance(String id)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-runtimeservice-terminateprocessinstance-string-id/m-p/53027#M31304</link>
      <description>We at camunda would like to provide a method, which terminates a given process instance, in the runtime service.The method will essentially call ExecutionEntity.end().Do you have any concerns with that or can we just provide an implementation for you to review?</description>
      <pubDate>Tue, 15 Nov 2011 12:45:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-runtimeservice-terminateprocessinstance-string-id/m-p/53027#M31304</guid>
      <dc:creator>falko_menge</dc:creator>
      <dc:date>2011-11-15T12:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: RuntimeService.terminateProcessInstance(String id)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-runtimeservice-terminateprocessinstance-string-id/m-p/53028#M31305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Falko,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it would be nice to see that the process instance has ended with a terminate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you plan to support that as well?&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>Wed, 16 Nov 2011 18:35:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-runtimeservice-terminateprocessinstance-string-id/m-p/53028#M31305</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-11-16T18:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: RuntimeService.terminateProcessInstance(String id)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-runtimeservice-terminateprocessinstance-string-id/m-p/53029#M31306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think it would be nice to see that the process instance has ended with a terminate.&lt;BR /&gt;Do you plan to support that as well?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;It's not yet planned, but I like the idea. I'll have a look at it and see how much effort it is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Falko&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 18:47:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-runtimeservice-terminateprocessinstance-string-id/m-p/53029#M31306</guid>
      <dc:creator>falko_menge</dc:creator>
      <dc:date>2011-11-16T18:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: RuntimeService.terminateProcessInstance(String id)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-runtimeservice-terminateprocessinstance-string-id/m-p/53030#M31307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Go ahead.&amp;nbsp; Looks like a good addition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The deleteReason property should be used to indicate why the execution has been ended.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that should be a mandatory parameter in the method that we expose to users.&amp;nbsp; Maybe we could offer some constants or convenience methods&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; void endProcessInstance(String processInstanceId, String deleteReason);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; void endProcessInstanceTerminate(String processInstanceId); // uses TERMINATED constant as the delete reason&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; void endProcessInstanceCancel(String processInstanceId); // uses CANCELLED constant as the delete reason&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The trick is to test and document the implications properly.&amp;nbsp; What happens if you end a sub process that is bound to a super process etc.&amp;nbsp; It should also be clearly documented.&amp;nbsp; If we add it to the API, people will start trying and using it.&amp;nbsp; Will users have to be carefull with it?&amp;nbsp; Or is it robust and will there not be any forseeable surprises.&amp;nbsp; All that needs to be explicitely indicated in the javadoc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also indicate the purpose of the delete reason: namely refer to the history logs.&amp;nbsp; The delete reason was added to exclude certain types of abnormally ended processes from the business intelligence analysis queries.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 08:34:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-runtimeservice-terminateprocessinstance-string-id/m-p/53030#M31307</guid>
      <dc:creator>tombaeyens</dc:creator>
      <dc:date>2011-11-17T08:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: RuntimeService.terminateProcessInstance(String id)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-runtimeservice-terminateprocessinstance-string-id/m-p/53031#M31308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First I had a look at runtimeService.deleteProcessInstance(…). Is there a reason for not having a DELETE_REASON_ column in the history process instances table. Or was it simply forgotten?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the broader topic: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that ending a process Instance through ExecutionEntity.end() is not a good idea:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a) I am pretty sure it fails if the process instance has sub processes instances (foreign key constraints not met). Or do you want to end those too, with the same semantics? Will get very messy and very hacky.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b) will continue the execution in the super process which is pretty unrealistic because in most cases, if I terminate a sub process abnormally the super process will not be able to continue normally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am more in favor of using delete is such situations because there the semantics are clear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, the atomic operation AtomicOperationDeleteCascadeFireActivityEnd which is not used at the moment could be interesting as it would set an end_act_id_ (if I am not mistaken).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 13:22:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-runtimeservice-terminateprocessinstance-string-id/m-p/53031#M31308</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2011-11-17T13:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: RuntimeService.terminateProcessInstance(String id)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-runtimeservice-terminateprocessinstance-string-id/m-p/53032#M31309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The point is: this is not the termination end event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I put the termination end event in a process, I decide at modelling time that I am OK with the semantics and that my process (hierarchy) can handle it. (I.e super process instance continues, even if the sub process instance is terminated "abnormally")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If we offer the semantics of the termination end event as an api-level method for ALL processes i.e. even those that cannot handle it properly, it will be a great source of "WTF", as most of the time calling the method will throw an exception.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 17:36:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-runtimeservice-terminateprocessinstance-string-id/m-p/53032#M31309</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2011-11-17T17:36:23Z</dc:date>
    </item>
  </channel>
</rss>

