<?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 Signalling parallel execution in service task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/signalling-parallel-execution-in-service-task/m-p/154026#M108544</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;we are currently trying to model two parallel executions where one execution signals the other to terminate. We have tried to use signals to trigger the termination:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[IMG]&lt;/SPAN&gt;&lt;A href="http://i.imgur.com/WU3SV5o.png" rel="nofollow noopener noreferrer"&gt;http://i.imgur.com/WU3SV5o.png&lt;/A&gt;&lt;SPAN&gt;[/IMG]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As signals are broadcasted to all executions in all running process instances, we use a service task to only signal executions in the current process instance. However, in our test case, we receive the following exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; org.apache.ibatis.exceptions.PersistenceException:&lt;BR /&gt;&amp;nbsp; ### Error updating database.&amp;nbsp; Cause: org.h2.jdbc.JdbcSQLException: Referentielle Integrität verletzt: "ACT_FK_TASK_EXE: PUBLIC.ACT_RU_TASK FOREIGN KEY(EXECUTION_ID_) REFERENCES PUBLIC.ACT_RU_EXECUTION(ID_) ('9')"&lt;BR /&gt;&amp;nbsp; Referential integrity constraint violation: "ACT_FK_TASK_EXE: PUBLIC.ACT_RU_TASK FOREIGN KEY(EXECUTION_ID_) REFERENCES PUBLIC.ACT_RU_EXECUTION(ID_) ('9')"; SQL statement:&lt;BR /&gt;&amp;nbsp; delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ? [23503-168]&lt;BR /&gt;&amp;nbsp; ### The error may involve org.activiti.engine.impl.persistence.entity.ExecutionEntity.deleteExecution-Inline&lt;BR /&gt;&amp;nbsp; ### The error occurred while setting parameters&lt;BR /&gt;&amp;nbsp; ### SQL: delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ?&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;In our real live application, the service task terminates the parallel execution just fine, but the service task itself remains active.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We think that there is an issue with the service task trying to influence the control flow by sending signals.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Two questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Do you think, this is a bug?&lt;/LI&gt;&amp;nbsp; &lt;LI&gt;How would you otherwise model this use case?&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;Please keep in mind that we cannot use intermediate signal throwing events as this would broadcast the signal to all process instances. Also, we could use a sub process and a terminate event. However, we would prefer to keep the three user tasks on the same level as this documents the business process more concisely. (We would like to use swimlanes and sub processes cannot span several lanes.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached you will find the test case and stack trace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2014 16:47:42 GMT</pubDate>
    <dc:creator>activator</dc:creator>
    <dc:date>2014-03-14T16:47:42Z</dc:date>
    <item>
      <title>Signalling parallel execution in service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signalling-parallel-execution-in-service-task/m-p/154026#M108544</link>
      <description>Hi,we are currently trying to model two parallel executions where one execution signals the other to terminate. We have tried to use signals to trigger the termination:[IMG]http://i.imgur.com/WU3SV5o.png[/IMG]As signals are broadcasted to all executions in all running process instances, we use a ser</description>
      <pubDate>Fri, 14 Mar 2014 16:47:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signalling-parallel-execution-in-service-task/m-p/154026#M108544</guid>
      <dc:creator>activator</dc:creator>
      <dc:date>2014-03-14T16:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Signalling parallel execution in service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signalling-parallel-execution-in-service-task/m-p/154027#M108545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; As signals are broadcasted to all executions in all running process instances,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A signal has also an optional 'activiti:scope' property, which you can set to 'process instance' to not be broadcasted that wide. Did you try that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Signal catching on service tasks is dodgy im afraid, as you can't kill java logic executing that easy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 10:20:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signalling-parallel-execution-in-service-task/m-p/154027#M108545</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-03-17T10:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Signalling parallel execution in service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signalling-parallel-execution-in-service-task/m-p/154028#M108546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jbarrez,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The property 'activiti:scope' sounds just like the feature we need!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I constructed a small test example very similar to my picture above with a signal throwing event instead of a service task. Executing the example still throws an exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;…&lt;BR /&gt;Referential integrity constraint violation: "ACT_FK_TASK_EXE: PUBLIC.ACT_RU_TASK FOREIGN KEY(EXECUTION_ID_) REFERENCES PUBLIC.ACT_RU_EXECUTION(ID_) ('9')"; SQL statement:&lt;BR /&gt;delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ? [23503-168]&lt;BR /&gt;…&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that activiti tries to delete the execution of the upper parallel branch, however, the user task is not deleted first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We use activiti v5.14. Are there known issues with the signal boundary event being used on a user task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can provide the unit test, if you like. How do I upload a file other than simple text file?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 14:15:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signalling-parallel-execution-in-service-task/m-p/154028#M108546</guid>
      <dc:creator>activator</dc:creator>
      <dc:date>2014-03-18T14:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Signalling parallel execution in service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signalling-parallel-execution-in-service-task/m-p/154029#M108547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not a known issue for sure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A unit test would be appreciated. You can always rename the file to have a .txt extension here &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 11:43:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signalling-parallel-execution-in-service-task/m-p/154029#M108547</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-03-24T11:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Signalling parallel execution in service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signalling-parallel-execution-in-service-task/m-p/154030#M108548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Attached the unit test built on top of the activiti-unit-test-template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 13:05:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signalling-parallel-execution-in-service-task/m-p/154030#M108548</guid>
      <dc:creator>activator</dc:creator>
      <dc:date>2014-03-25T13:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Signalling parallel execution in service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/signalling-parallel-execution-in-service-task/m-p/154031#M108549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Verified, indeed a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bugfix has been pushed: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/commit/0eeca1883e64b6218228d61b39bb45803ab75f54" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/commit/0eeca1883e64b6218228d61b39bb45803ab75f54&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It will be part of Activiti 5.15.1, which will be released later this week.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 19:41:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/signalling-parallel-execution-in-service-task/m-p/154031#M108549</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-03-25T19:41:27Z</dc:date>
    </item>
  </channel>
</rss>

