<?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 End terminate event vs Timer on Task in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/end-terminate-event-vs-timer-on-task/m-p/33059#M13986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets say you have two tasks running in parallel. Task#1 has a timer which cancel the task eventually. Task#2 has a timer which triggers a reminder but does not cancel the task.&amp;nbsp;The branch of Task#1 eventually leads to an End terminate event which is intended to cancel the entire sub process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An exception is thrown when the end terminate event is reached:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Caused by: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "ACT_FK_EXE_PARENT: PUBLIC.ACT_RU_EXECUTION FOREIGN KEY(PARENT_ID_) REFERENCES PUBLIC.ACT_RU_EXECUTION(ID_) ('42')"; SQL statement:&lt;BR /&gt;delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ? [23503-197]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe it is because of the timer. It is true that this is can be solved by some script (e.g. complete the task in script before the end).&amp;nbsp;But I wonder if there is a nicer/cleaner solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without the timer, no exception is thrown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;version&lt;/P&gt;&lt;P&gt;org.activiti.core.common: 7.0.3&lt;/P&gt;&lt;P&gt;activiti-engine 7.0.50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2019 20:52:39 GMT</pubDate>
    <dc:creator>zxu</dc:creator>
    <dc:date>2019-04-15T20:52:39Z</dc:date>
    <item>
      <title>End terminate event vs Timer on Task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/end-terminate-event-vs-timer-on-task/m-p/33059#M13986</link>
      <description>Lets say you have two tasks running in parallel. Task#1 has a timer which cancel the task eventually. Task#2 has a timer which triggers a reminder but does not cancel the task.&amp;nbsp;The branch of Task#1 eventually leads to an End terminate event which is intended to cancel the entire sub process.An excep</description>
      <pubDate>Mon, 15 Apr 2019 20:52:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/end-terminate-event-vs-timer-on-task/m-p/33059#M13986</guid>
      <dc:creator>zxu</dc:creator>
      <dc:date>2019-04-15T20:52:39Z</dc:date>
    </item>
  </channel>
</rss>

