<?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 Terminating an active process instance in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/terminating-an-active-process-instance/m-p/85538#M57708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do we terminate a process instance. I see APIs for suspending and resuming a process. But nothing as such for terminating a process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We do have such business use cases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, in a loan approval process, while the process is underway, the applicant might come up with a cancellation request. So, we have to terminate the process instance. Suspend will not be appropriate for this use case. We can not probably use error end, because practically the cancel request can come up at any point of time and the execution can be at any ( rather many ) node in the process. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I am interested in knowing if there are any standard process pattern for this use case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2012 10:40:59 GMT</pubDate>
    <dc:creator>amuthuse</dc:creator>
    <dc:date>2012-06-14T10:40:59Z</dc:date>
    <item>
      <title>Terminating an active process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/terminating-an-active-process-instance/m-p/85538#M57708</link>
      <description>How do we terminate a process instance. I see APIs for suspending and resuming a process. But nothing as such for terminating a process.We do have such business use cases.For example, in a loan approval process, while the process is underway, the applicant might come up with a cancellation request.</description>
      <pubDate>Thu, 14 Jun 2012 10:40:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/terminating-an-active-process-instance/m-p/85538#M57708</guid>
      <dc:creator>amuthuse</dc:creator>
      <dc:date>2012-06-14T10:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating an active process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/terminating-an-active-process-instance/m-p/85539#M57709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pls don't treat this as an authoritative answer. Just sharing my point of view:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. The BPMN on level of its definition manages all cases including cancellation. It can be done by boundary event or so. Check the UM for details&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Completely delete the process instance with RuntimeServicedeleteProcessInstance(String processInstanceId, String deleteReason). Then you loose the history I bet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 11:19:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/terminating-an-active-process-instance/m-p/85539#M57709</guid>
      <dc:creator>p4w3l</dc:creator>
      <dc:date>2012-06-14T11:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating an active process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/terminating-an-active-process-instance/m-p/85540#M57710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Pls don't treat this as an authoritative answer. Just sharing my point of view:&lt;BR /&gt;&lt;BR /&gt;1. The BPMN on level of its definition manages all cases including cancellation. It can be done by boundary event or so. Check the UM for details&lt;BR /&gt;&lt;BR /&gt;2. Completely delete the process instance with RuntimeServicedeleteProcessInstance(String processInstanceId, String deleteReason). Then you loose the history I bet.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cancel activity of boundary event is not working properly. (I am waiting for this property.) Is there any development on this subject.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I check the status of item; I see it is resolved. İs there anyone who will validate it is solved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=3789&amp;amp;p=15266&amp;amp;hilit=cancel+activity#p15266" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=3789&amp;amp;p=15266&amp;amp;hilit=cancel+activity#p15266&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 12:23:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/terminating-an-active-process-instance/m-p/85540#M57710</guid>
      <dc:creator>nemesis1</dc:creator>
      <dc:date>2012-06-14T12:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating an active process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/terminating-an-active-process-instance/m-p/85541#M57711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried it on activiti 5.9.3. It does not work when cancel activity is set false.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;com.vaadin.event.ListenerMethod$MethodException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cause: com.vaadin.event.ListenerMethod$MethodException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cause: org.apache.ibatis.exceptions.PersistenceException: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;### Error updating database.&amp;nbsp; Cause: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "ACT_FK_EXE_PROCINST: PUBLIC.ACT_RU_EXECUTION FOREIGN KEY(PROC_INST_ID_) REFERENCES PUBLIC.ACT_RU_EXECUTION(ID_)"; SQL statement:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete from ACT_RU_EXECUTION where ID_ = ? [23003-132]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.h2.message.DbException.getJdbcSQLException(DbException.java:316)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.h2.message.DbException.get(DbException.java:167)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.h2.message.DbException.get(DbException.java:144)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:374)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.h2.constraint.ConstraintReferential.checkRowRefTable(ConstraintReferential.java:391)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:271)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.h2.table.Table.fireConstraints(Table.java:766)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.h2.table.Table.fireAfterRow(Table.java:783)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.h2.command.dml.Delete.update(Delete.java:79)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.h2.command.CommandContainer.update(CommandContainer.java:70)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.h2.command.Command.executeUpdate(Command.java:198)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.h2.server.TcpServerThread.process(TcpServerThread.java:298)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.h2.server.TcpServerThread.run(TcpServerThread.java:135)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.lang.Thread.run(Thread.java:619)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;### The error may involve org.activiti.engine.impl.persistence.entity.ExecutionEntity.deleteExecution-Inline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;### The error occurred while setting parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;### Cause: org.h2.jdbc.JdbcSQLException: Referential integr&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:52:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/terminating-an-active-process-instance/m-p/85541#M57711</guid>
      <dc:creator>nemesis1</dc:creator>
      <dc:date>2012-06-14T13:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating an active process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/terminating-an-active-process-instance/m-p/85542#M57712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Pls don't treat this as an authoritative answer. Just sharing my point of view:&lt;BR /&gt;&lt;BR /&gt;1. The BPMN on level of its definition manages all cases including cancellation. It can be done by boundary event or so. Check the UM for details&lt;BR /&gt;&lt;BR /&gt;2. Completely delete the process instance with RuntimeServicedeleteProcessInstance(String processInstanceId, String deleteReason). Then you loose the history I bet.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I couldnt find enough info about the first approach in UM. I would appriciate if you/anyone share some more details about it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;second approach, wont be applicable to most of the usecases, since we cant afford to lose the history.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 11:26:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/terminating-an-active-process-instance/m-p/85542#M57712</guid>
      <dc:creator>amuthuse</dc:creator>
      <dc:date>2012-06-18T11:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Terminating an active process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/terminating-an-active-process-instance/m-p/85543#M57713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I encountered the same problem, then I found out that when you delete a process instance, activiti engine just remove the process instance from active process instances, and make a 'delete reason' mark on the historic process instance, all the historic record will be kept in database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so if you want to terminate a process instance, you just call runtimService.deleteProcessInstance()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 09:42:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/terminating-an-active-process-instance/m-p/85543#M57713</guid>
      <dc:creator>vivalg</dc:creator>
      <dc:date>2012-08-16T09:42:37Z</dc:date>
    </item>
  </channel>
</rss>

