<?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: a new API to end a process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127764#M89825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The reason for this is that some companies want to keep an audit trail of the history, even when things are deleted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2013 11:46:44 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2013-02-05T11:46:44Z</dc:date>
    <item>
      <title>Proposal: a new API to end a process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127759#M89820</link>
      <description>Hi all,what do you think about creating a new API to end a process? Will it have some drawbacks?Thanks.ByeFranco</description>
      <pubDate>Fri, 01 Feb 2013 09:50:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127759#M89820</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-02-01T09:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: a new API to end a process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127760#M89821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"Ending" a process externally is not really BPMN-compliant, if it's not modeled in explicitly () &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; However, we have a method on the runtime service which terminates an existing process. The process will just stop, only any "execution-listeners" -which are defined on "event=end" of the process- will be called:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; /** Delete an existing runtime process instance.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @param processInstanceId id of process instance to delete, cannot be null.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @param deleteReason reason for deleting, can be null.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @throws ActivitiObjectNotFoundException when no process instance is found with the given id.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; void deleteProcessInstance(String processInstanceId, String deleteReason);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 10:00:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127760#M89821</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-02-01T10:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: a new API to end a process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127761#M89822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does this method "clean up" the history of the process?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 13:55:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127761#M89822</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-02-01T13:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: a new API to end a process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127762#M89823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It does not, you're required to delete the HistoricProcessInstance using the HistoroService, AFTER you deleted the runtime one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 16:18:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127762#M89823</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-02-01T16:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: a new API to end a process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127763#M89824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Uhm… IMHO it sounds a bit confusing: I have to delete a process in order to end it, while the "delete" API doesn't delete it completely…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway I'll try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 10:24:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127763#M89824</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-02-04T10:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: a new API to end a process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127764#M89825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The reason for this is that some companies want to keep an audit trail of the history, even when things are deleted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 11:46:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127764#M89825</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-02-05T11:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: a new API to end a process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127765#M89826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The same concept as completing a process is applied, once completed it doen't exist anymore in the runtime. History is kept for audit-trail as Joram said.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 12:43:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127765#M89826</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-02-05T12:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: a new API to end a process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127766#M89827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For my business case, I need to be able to delete active (i.e. not completed) process instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, for selected users, these deleted instances should be visible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am already using the API suggested method&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;void deleteProcessInstance(String processInstanceId, String deleteReason);&lt;/CODE&gt;&lt;SPAN&gt;for that purpose.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I don't see a way to query the &lt;/SPAN&gt;&lt;CODE&gt;(Historic)ProcessInstanceQuery&lt;/CODE&gt;&lt;SPAN&gt; interfaces to include these deleted instances: methods "finished()" and "unfinished()" seem to only take into account the "complete" status of a process instance. Am I wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 14:26:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127766#M89827</guid>
      <dc:creator>dimitrihautot</dc:creator>
      <dc:date>2013-03-25T14:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: a new API to end a process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127767#M89828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;these deleted instances: methods "finished()" and "unfinished()" seem to only take into account the "complete" status of a process instance. Am I wrong?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed that is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you query the historic process instance by id, don't they just show up in the query results?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 09:38:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127767#M89828</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-26T09:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: a new API to end a process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127768#M89829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps we need a similar query-possibility as we have for HistoricTasks:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;/** Only select historic task instances with the given task delete reason. */&lt;BR /&gt;&amp;nbsp; HistoricTaskInstanceQuery taskDeleteReason(String taskDeleteReason);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;When deleting a process, a reason can be passed. If we allow for HistoricProcessInstances to be queries on that, you can differentiate between those processes. A current workaround is maybe to inspect the "end-activity" to see if it has reached the actual end-event or not…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 12:38:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127768#M89829</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-27T12:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: a new API to end a process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127769#M89830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello team and community,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed, the HistoricProcessInstanceQuery allows to select both running and deleted instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As suggested by Frederik, the "end-activity" can be used as a filter, and refinement can be made on "delete reason" string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So there is definitely a way to find out deleted instances, but as suggested, having a filtering API on the query would be the best.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your support, and apologies for delayed feedback…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 18:00:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127769#M89830</guid>
      <dc:creator>dimitrihautot</dc:creator>
      <dc:date>2013-04-15T18:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: a new API to end a process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127770#M89831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The easiest to get that in the engine is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- create apull request yourself of course &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- create a jira issue with a link to this forum post so we can plan it&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 10:23:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127770#M89831</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-16T10:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proposal: a new API to end a process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127771#M89832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Extremely helpful thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, what I understood from it is that the runtime traces of the instance gets deleted keeping the historic instance for audit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was kind of hoping that it was a soft delete at the runtime-level as well. That way, it would be very easy to implement an undo delete method in case the process instance needs to be returned to the active pool after inspection from higher roles in the role hierarchy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe, what I am saying is not sounding BPMN compliant but there are already a lot of process instances in the rejected state which needs this feature and remodelling the workflows to have a different state like "On Hold" is not sounding like a great option because of migration issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 10:35:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/proposal-a-new-api-to-end-a-process/m-p/127771#M89832</guid>
      <dc:creator>avikganguly</dc:creator>
      <dc:date>2015-07-29T10:35:02Z</dc:date>
    </item>
  </channel>
</rss>

